@atlaskit/editor-plugin-alignment 9.0.0 → 9.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/README.md +14 -1
- package/dist/cjs/ui/Alignment/index.js +2 -1
- package/dist/cjs/ui/ToolbarAlignment/index.js +3 -2
- package/dist/es2019/ui/Alignment/index.js +2 -1
- package/dist/es2019/ui/ToolbarAlignment/index.js +4 -1
- package/dist/esm/ui/Alignment/index.js +2 -1
- package/dist/esm/ui/ToolbarAlignment/index.js +3 -2
- package/dist/types/ui/Alignment/index.d.ts +9 -4
- package/dist/types/ui/ToolbarAlignment/index.d.ts +3 -3
- package/dist/types-ts4.5/ui/Alignment/index.d.ts +9 -4
- package/dist/types-ts4.5/ui/ToolbarAlignment/index.d.ts +3 -3
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 9.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`92f6f3650479b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/92f6f3650479b) -
|
|
8
|
+
Update README.md and 0-intro.tsx
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
11
|
+
## 9.0.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
3
17
|
## 9.0.0
|
|
4
18
|
|
|
5
19
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -1,10 +1,23 @@
|
|
|
1
|
-
# Editor
|
|
1
|
+
# Editor Plugin Alignment
|
|
2
2
|
|
|
3
3
|
Alignment plugin for @atlaskit/editor-core
|
|
4
4
|
|
|
5
5
|
**Note:** This component is designed for internal Atlassian development.
|
|
6
6
|
External contributors will be able to use this component but will not be able to submit issues.
|
|
7
7
|
|
|
8
|
+
## Overview
|
|
9
|
+
|
|
10
|
+
The Alignment plugin provides text and media alignment capabilities for the Atlassian Editor. It enables users to align paragraphs and images to the left, center, or right, with support for keyboard shortcuts, toolbar buttons, and floating toolbars.
|
|
11
|
+
|
|
12
|
+
## Key features
|
|
13
|
+
|
|
14
|
+
- **Text alignment** - Align paragraphs and headings (left, center, right)
|
|
15
|
+
- **Media alignment** - Align images and media elements within the editor
|
|
16
|
+
- **Keyboard shortcuts** - Quick alignment using standard keyboard combinations
|
|
17
|
+
- **Toolbar integration** - Primary, floating, and selection toolbar support
|
|
18
|
+
- **Analytics tracking** - Built-in analytics for alignment actions
|
|
19
|
+
- **Configurable input methods** - Support for toolbar, floating toolbar, and keyboard inputs
|
|
20
|
+
|
|
8
21
|
## Install
|
|
9
22
|
---
|
|
10
23
|
- **Install** - *yarn add @atlaskit/editor-plugin-alignment*
|
|
@@ -234,6 +234,7 @@ var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
236
|
}]);
|
|
237
|
-
}(_react.default.Component);
|
|
237
|
+
}(_react.default.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
238
238
|
(0, _defineProperty2.default)(AlignmentToolbar, "displayName", 'AlignmentToolbar');
|
|
239
|
-
var
|
|
239
|
+
var _default_1 = (0, _reactIntlNext.injectIntl)(AlignmentToolbar);
|
|
240
|
+
var _default = exports.default = _default_1;
|
|
@@ -204,5 +204,8 @@ class AlignmentToolbar extends React.Component {
|
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
|
+
|
|
208
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
207
209
|
_defineProperty(AlignmentToolbar, "displayName", 'AlignmentToolbar');
|
|
208
|
-
|
|
210
|
+
const _default_1 = injectIntl(AlignmentToolbar);
|
|
211
|
+
export default _default_1;
|
|
@@ -227,6 +227,7 @@ var AlignmentToolbar = /*#__PURE__*/function (_React$Component) {
|
|
|
227
227
|
}
|
|
228
228
|
}
|
|
229
229
|
}]);
|
|
230
|
-
}(React.Component);
|
|
230
|
+
}(React.Component); // eslint-disable-next-line @typescript-eslint/ban-types
|
|
231
231
|
_defineProperty(AlignmentToolbar, "displayName", 'AlignmentToolbar');
|
|
232
|
-
|
|
232
|
+
var _default_1 = injectIntl(AlignmentToolbar);
|
|
233
|
+
export default _default_1;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { FC, ComponentType } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import type { AlignmentState } from '../../pm-plugins/types';
|
|
3
8
|
export interface Props {
|
|
4
9
|
className?: string;
|
|
5
10
|
onClick: (value: AlignmentState) => void;
|
|
6
11
|
selectedAlignment?: string;
|
|
7
12
|
}
|
|
8
|
-
declare const
|
|
9
|
-
WrappedComponent:
|
|
13
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
14
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
10
15
|
};
|
|
11
|
-
export default
|
|
16
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import type { AlignmentPlugin } from '../../alignmentPluginType';
|
|
9
9
|
import { ToolbarType, type AlignmentState } from '../../pm-plugins/types';
|
|
@@ -18,7 +18,7 @@ export interface Props {
|
|
|
18
18
|
popupsScrollableElement?: HTMLElement;
|
|
19
19
|
toolbarType: ToolbarType;
|
|
20
20
|
}
|
|
21
|
-
declare const
|
|
21
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
22
22
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
|
-
export default
|
|
24
|
+
export default _default_1;
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @jsxRuntime classic
|
|
3
|
+
* @jsx jsx
|
|
4
|
+
*/
|
|
5
|
+
import type { FC, ComponentType } from 'react';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
2
7
|
import type { AlignmentState } from '../../pm-plugins/types';
|
|
3
8
|
export interface Props {
|
|
4
9
|
className?: string;
|
|
5
10
|
onClick: (value: AlignmentState) => void;
|
|
6
11
|
selectedAlignment?: string;
|
|
7
12
|
}
|
|
8
|
-
declare const
|
|
9
|
-
WrappedComponent:
|
|
13
|
+
declare const _default_1: FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
14
|
+
WrappedComponent: ComponentType<Props & WrappedComponentProps>;
|
|
10
15
|
};
|
|
11
|
-
export default
|
|
16
|
+
export default _default_1;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @jsx jsx
|
|
4
4
|
*/
|
|
5
5
|
import React from 'react';
|
|
6
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
6
|
+
import type { WithIntlProps, WrappedComponentProps } from 'react-intl-next';
|
|
7
7
|
import { type ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
8
8
|
import type { AlignmentPlugin } from '../../alignmentPluginType';
|
|
9
9
|
import { ToolbarType, type AlignmentState } from '../../pm-plugins/types';
|
|
@@ -18,7 +18,7 @@ export interface Props {
|
|
|
18
18
|
popupsScrollableElement?: HTMLElement;
|
|
19
19
|
toolbarType: ToolbarType;
|
|
20
20
|
}
|
|
21
|
-
declare const
|
|
21
|
+
declare const _default_1: React.FC<WithIntlProps<Props & WrappedComponentProps>> & {
|
|
22
22
|
WrappedComponent: React.ComponentType<Props & WrappedComponentProps>;
|
|
23
23
|
};
|
|
24
|
-
export default
|
|
24
|
+
export default _default_1;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "9.0.
|
|
3
|
+
"version": "9.0.2",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"@atlaskit/editor-toolbar": "^0.19.0",
|
|
38
38
|
"@atlaskit/icon": "^32.0.0",
|
|
39
39
|
"@atlaskit/platform-feature-flags": "^1.1.0",
|
|
40
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
40
|
+
"@atlaskit/tmp-editor-statsig": "^36.0.0",
|
|
41
41
|
"@atlaskit/tokens": "^11.1.0",
|
|
42
42
|
"@babel/runtime": "^7.0.0",
|
|
43
43
|
"@compiled/react": "^0.20.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"@atlaskit/editor-common": "^112.
|
|
46
|
+
"@atlaskit/editor-common": "^112.1.0",
|
|
47
47
|
"react": "^18.2.0",
|
|
48
48
|
"react-dom": "^18.2.0",
|
|
49
49
|
"react-intl-next": "npm:react-intl@^5.18.1"
|