@atlaskit/editor-plugin-alignment 0.2.1 → 0.2.3

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,18 @@
1
1
  # @atlaskit/editor-plugin-alignment
2
2
 
3
+ ## 0.2.3
4
+
5
+ ### Patch Changes
6
+
7
+ - [#68572](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/68572) [`15d407fe5143`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/15d407fe5143) - Upgrading @atlaskit/editor-prosemirror dependency
8
+
9
+ ## 0.2.2
10
+
11
+ ### Patch Changes
12
+
13
+ - [#71136](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/71136) [`c803fea1e6a4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/c803fea1e6a4) - Move all plugin translations to editor-common
14
+ - Updated dependencies
15
+
3
16
  ## 0.2.1
4
17
 
5
18
  ### Patch Changes
@@ -7,22 +7,22 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.IconMap = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _reactIntlNext = require("react-intl-next");
10
+ var _messages = require("@atlaskit/editor-common/messages");
10
11
  var _alignCenter = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-center"));
11
12
  var _alignLeft = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-left"));
12
13
  var _alignRight = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/align-right"));
13
- var _messages = require("./messages");
14
14
  var iconAndMessageMap = {
15
15
  start: {
16
16
  Component: _alignLeft.default,
17
- label: _messages.messages.alignLeft
17
+ label: _messages.alignmentMessages.alignLeft
18
18
  },
19
19
  end: {
20
20
  Component: _alignRight.default,
21
- label: _messages.messages.alignRight
21
+ label: _messages.alignmentMessages.alignRight
22
22
  },
23
23
  center: {
24
24
  Component: _alignCenter.default,
25
- label: _messages.messages.alignCenter
25
+ label: _messages.alignmentMessages.alignCenter
26
26
  }
27
27
  };
28
28
  var IconMap = exports.IconMap = function IconMap(props) {
@@ -15,12 +15,12 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
15
15
  var _react = _interopRequireDefault(require("react"));
16
16
  var _react2 = require("@emotion/react");
17
17
  var _reactIntlNext = require("react-intl-next");
18
+ var _messages = require("@atlaskit/editor-common/messages");
18
19
  var _styles = require("@atlaskit/editor-common/styles");
19
20
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
20
21
  var _chevronDown = _interopRequireDefault(require("@atlaskit/icon/glyph/chevron-down"));
21
22
  var _Alignment = _interopRequireDefault(require("../Alignment"));
22
23
  var _iconMap = require("./icon-map");
23
- var _messages = require("./messages");
24
24
  var _styles2 = require("./styles");
25
25
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
26
26
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } /** @jsx jsx */
@@ -91,7 +91,7 @@ var AlignmentToolbar = exports.AlignmentToolbar = /*#__PURE__*/function (_React$
91
91
  disabled = _this$props.disabled,
92
92
  intl = _this$props.intl;
93
93
  var alignment = (_pluginState$align = pluginState === null || pluginState === void 0 ? void 0 : pluginState.align) !== null && _pluginState$align !== void 0 ? _pluginState$align : 'start';
94
- var title = intl.formatMessage(_messages.messages.alignment);
94
+ var title = intl.formatMessage(_messages.alignmentMessages.alignment);
95
95
  return (
96
96
  // eslint-disable-next-line @atlaskit/design-system/consistent-css-prop-usage
97
97
  (0, _react2.jsx)("span", {
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
+ import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
3
4
  import EditorAlignCenterIcon from '@atlaskit/icon/glyph/editor/align-center';
4
5
  import EditorAlignLeftIcon from '@atlaskit/icon/glyph/editor/align-left';
5
6
  import EditorAlignRightIcon from '@atlaskit/icon/glyph/editor/align-right';
6
- import { messages } from './messages';
7
7
  const iconAndMessageMap = {
8
8
  start: {
9
9
  Component: EditorAlignLeftIcon,
@@ -3,12 +3,12 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  import React from 'react';
4
4
  import { jsx } from '@emotion/react';
5
5
  import { injectIntl } from 'react-intl-next';
6
+ import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
6
7
  import { separatorStyles } from '@atlaskit/editor-common/styles';
7
8
  import { ArrowKeyNavigationType, DropdownContainer as Dropdown, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
8
9
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
9
10
  import Alignment from '../Alignment';
10
11
  import { IconMap } from './icon-map';
11
- import { messages } from './messages';
12
12
  import { expandIconWrapper, triggerWrapper, wrapper } from './styles';
13
13
  // eslint-disable-next-line @repo/internal/react/no-class-components
14
14
  export class AlignmentToolbar extends React.Component {
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { useIntl } from 'react-intl-next';
3
+ import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
3
4
  import EditorAlignCenterIcon from '@atlaskit/icon/glyph/editor/align-center';
4
5
  import EditorAlignLeftIcon from '@atlaskit/icon/glyph/editor/align-left';
5
6
  import EditorAlignRightIcon from '@atlaskit/icon/glyph/editor/align-right';
6
- import { messages } from './messages';
7
7
  var iconAndMessageMap = {
8
8
  start: {
9
9
  Component: EditorAlignLeftIcon,
@@ -11,12 +11,12 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
11
11
  import React from 'react';
12
12
  import { jsx } from '@emotion/react';
13
13
  import { injectIntl } from 'react-intl-next';
14
+ import { alignmentMessages as messages } from '@atlaskit/editor-common/messages';
14
15
  import { separatorStyles } from '@atlaskit/editor-common/styles';
15
16
  import { ArrowKeyNavigationType, DropdownContainer as Dropdown, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
16
17
  import ExpandIcon from '@atlaskit/icon/glyph/chevron-down';
17
18
  import Alignment from '../Alignment';
18
19
  import { IconMap } from './icon-map';
19
- import { messages } from './messages';
20
20
  import { expandIconWrapper, triggerWrapper, wrapper } from './styles';
21
21
  // eslint-disable-next-line @repo/internal/react/no-class-components
22
22
  export var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-alignment",
3
- "version": "0.2.1",
3
+ "version": "0.2.3",
4
4
  "description": "Alignment plugin for @atlaskit/editor-core",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -22,8 +22,8 @@
22
22
  },
23
23
  "dependencies": {
24
24
  "@atlaskit/adf-schema": "^35.5.1",
25
- "@atlaskit/editor-common": "^77.2.0",
26
- "@atlaskit/editor-prosemirror": "1.1.0",
25
+ "@atlaskit/editor-common": "^77.3.0",
26
+ "@atlaskit/editor-prosemirror": "3.0.0",
27
27
  "@atlaskit/editor-tables": "^2.5.0",
28
28
  "@atlaskit/icon": "^22.0.0",
29
29
  "@atlaskit/tokens": "^1.35.0",
@@ -1,29 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.messages = void 0;
7
- var _reactIntlNext = require("react-intl-next");
8
- var messages = exports.messages = (0, _reactIntlNext.defineMessages)({
9
- alignment: {
10
- id: 'fabric.editor.alignment',
11
- defaultMessage: 'Text alignment',
12
- description: 'Opens drop down menu of options to configure text alignment'
13
- },
14
- alignLeft: {
15
- id: 'fabric.editor.alignLeft',
16
- defaultMessage: 'Align left',
17
- description: 'label stating that text is aligned left'
18
- },
19
- alignRight: {
20
- id: 'fabric.editor.alignRight',
21
- defaultMessage: 'Align right',
22
- description: 'label stating that text is aligned right'
23
- },
24
- alignCenter: {
25
- id: 'fabric.editor.alignCenter',
26
- defaultMessage: 'Align center',
27
- description: 'label stating that text is aligned center'
28
- }
29
- });
@@ -1,23 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export const messages = defineMessages({
3
- alignment: {
4
- id: 'fabric.editor.alignment',
5
- defaultMessage: 'Text alignment',
6
- description: 'Opens drop down menu of options to configure text alignment'
7
- },
8
- alignLeft: {
9
- id: 'fabric.editor.alignLeft',
10
- defaultMessage: 'Align left',
11
- description: 'label stating that text is aligned left'
12
- },
13
- alignRight: {
14
- id: 'fabric.editor.alignRight',
15
- defaultMessage: 'Align right',
16
- description: 'label stating that text is aligned right'
17
- },
18
- alignCenter: {
19
- id: 'fabric.editor.alignCenter',
20
- defaultMessage: 'Align center',
21
- description: 'label stating that text is aligned center'
22
- }
23
- });
@@ -1,23 +0,0 @@
1
- import { defineMessages } from 'react-intl-next';
2
- export var messages = defineMessages({
3
- alignment: {
4
- id: 'fabric.editor.alignment',
5
- defaultMessage: 'Text alignment',
6
- description: 'Opens drop down menu of options to configure text alignment'
7
- },
8
- alignLeft: {
9
- id: 'fabric.editor.alignLeft',
10
- defaultMessage: 'Align left',
11
- description: 'label stating that text is aligned left'
12
- },
13
- alignRight: {
14
- id: 'fabric.editor.alignRight',
15
- defaultMessage: 'Align right',
16
- description: 'label stating that text is aligned right'
17
- },
18
- alignCenter: {
19
- id: 'fabric.editor.alignCenter',
20
- defaultMessage: 'Align center',
21
- description: 'label stating that text is aligned center'
22
- }
23
- });
@@ -1,22 +0,0 @@
1
- export declare const messages: {
2
- alignment: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- alignLeft: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- alignRight: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- alignCenter: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- };
@@ -1,22 +0,0 @@
1
- export declare const messages: {
2
- alignment: {
3
- id: string;
4
- defaultMessage: string;
5
- description: string;
6
- };
7
- alignLeft: {
8
- id: string;
9
- defaultMessage: string;
10
- description: string;
11
- };
12
- alignRight: {
13
- id: string;
14
- defaultMessage: string;
15
- description: string;
16
- };
17
- alignCenter: {
18
- id: string;
19
- defaultMessage: string;
20
- description: string;
21
- };
22
- };