@atlaskit/editor-plugin-alignment 1.9.3 → 1.11.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 +28 -0
- package/dist/cjs/plugin.js +5 -7
- package/dist/es2019/plugin.js +5 -7
- package/dist/esm/plugin.js +5 -7
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,33 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-alignment
|
|
2
2
|
|
|
3
|
+
## 1.11.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#128347](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/128347)
|
|
8
|
+
[`e33566cebd5d1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/e33566cebd5d1) -
|
|
9
|
+
[ED-24175] bump @atlaskit/adf-schema to 40.8.1 and @atlassian/adf-schema-json to 1.22.0 to
|
|
10
|
+
promotecodeblocks & media in quotes, and nested expands in expands to full schema, and allow
|
|
11
|
+
quotes in panels and decisions in lists in stage0 schema, and a validator spec change
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- Updated dependencies
|
|
16
|
+
|
|
17
|
+
## 1.10.0
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- [#126478](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/126478)
|
|
22
|
+
[`ca1665ebbfe4d`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/ca1665ebbfe4d) -
|
|
23
|
+
[ED-23435] Store primary toolbar component registry in a plugin variable instead of in plugin
|
|
24
|
+
state to avoid having to add effects to all plugins and enable SSR for the toolbar. [Breaking
|
|
25
|
+
change] Converted registerComponent from the primary toolbar plugin into an action.
|
|
26
|
+
|
|
27
|
+
### Patch Changes
|
|
28
|
+
|
|
29
|
+
- Updated dependencies
|
|
30
|
+
|
|
3
31
|
## 1.9.3
|
|
4
32
|
|
|
5
33
|
### Patch Changes
|
package/dist/cjs/plugin.js
CHANGED
|
@@ -14,6 +14,7 @@ var defaultConfig = exports.defaultConfig = {
|
|
|
14
14
|
align: 'start'
|
|
15
15
|
};
|
|
16
16
|
var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
|
|
17
|
+
var _api$primaryToolbar;
|
|
17
18
|
var api = _ref.api;
|
|
18
19
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
19
20
|
var editorView = _ref2.editorView,
|
|
@@ -32,6 +33,10 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
32
33
|
isToolbarReducedSpacing: isToolbarReducedSpacing
|
|
33
34
|
});
|
|
34
35
|
};
|
|
36
|
+
api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
|
|
37
|
+
name: 'alignment',
|
|
38
|
+
component: primaryToolbarComponent
|
|
39
|
+
});
|
|
35
40
|
return {
|
|
36
41
|
name: 'alignment',
|
|
37
42
|
marks: function marks() {
|
|
@@ -64,13 +69,6 @@ var alignmentPlugin = exports.alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
64
69
|
}
|
|
65
70
|
}];
|
|
66
71
|
},
|
|
67
|
-
usePluginHook: function usePluginHook() {
|
|
68
|
-
var _api$core, _api$primaryToolbar;
|
|
69
|
-
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
|
|
70
|
-
name: 'alignment',
|
|
71
|
-
component: primaryToolbarComponent
|
|
72
|
-
}));
|
|
73
|
-
},
|
|
74
72
|
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
|
|
75
73
|
};
|
|
76
74
|
};
|
package/dist/es2019/plugin.js
CHANGED
|
@@ -9,6 +9,7 @@ export const defaultConfig = {
|
|
|
9
9
|
export const alignmentPlugin = ({
|
|
10
10
|
api
|
|
11
11
|
}) => {
|
|
12
|
+
var _api$primaryToolbar;
|
|
12
13
|
const primaryToolbarComponent = ({
|
|
13
14
|
editorView,
|
|
14
15
|
popupsMountPoint,
|
|
@@ -27,6 +28,10 @@ export const alignmentPlugin = ({
|
|
|
27
28
|
isToolbarReducedSpacing: isToolbarReducedSpacing
|
|
28
29
|
});
|
|
29
30
|
};
|
|
31
|
+
api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.actions.registerComponent({
|
|
32
|
+
name: 'alignment',
|
|
33
|
+
component: primaryToolbarComponent
|
|
34
|
+
});
|
|
30
35
|
return {
|
|
31
36
|
name: 'alignment',
|
|
32
37
|
marks() {
|
|
@@ -56,13 +61,6 @@ export const alignmentPlugin = ({
|
|
|
56
61
|
plugin: () => keymapPlugin()
|
|
57
62
|
}];
|
|
58
63
|
},
|
|
59
|
-
usePluginHook: () => {
|
|
60
|
-
var _api$core, _api$primaryToolbar;
|
|
61
|
-
api === null || api === void 0 ? void 0 : (_api$core = api.core) === null || _api$core === void 0 ? void 0 : _api$core.actions.execute(api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
|
|
62
|
-
name: 'alignment',
|
|
63
|
-
component: primaryToolbarComponent
|
|
64
|
-
}));
|
|
65
|
-
},
|
|
66
64
|
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
|
|
67
65
|
};
|
|
68
66
|
};
|
package/dist/esm/plugin.js
CHANGED
|
@@ -7,6 +7,7 @@ export var defaultConfig = {
|
|
|
7
7
|
align: 'start'
|
|
8
8
|
};
|
|
9
9
|
export var alignmentPlugin = function alignmentPlugin(_ref) {
|
|
10
|
+
var _api$primaryToolbar;
|
|
10
11
|
var api = _ref.api;
|
|
11
12
|
var primaryToolbarComponent = function primaryToolbarComponent(_ref2) {
|
|
12
13
|
var editorView = _ref2.editorView,
|
|
@@ -25,6 +26,10 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
25
26
|
isToolbarReducedSpacing: isToolbarReducedSpacing
|
|
26
27
|
});
|
|
27
28
|
};
|
|
29
|
+
api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
|
|
30
|
+
name: 'alignment',
|
|
31
|
+
component: primaryToolbarComponent
|
|
32
|
+
});
|
|
28
33
|
return {
|
|
29
34
|
name: 'alignment',
|
|
30
35
|
marks: function marks() {
|
|
@@ -57,13 +62,6 @@ export var alignmentPlugin = function alignmentPlugin(_ref) {
|
|
|
57
62
|
}
|
|
58
63
|
}];
|
|
59
64
|
},
|
|
60
|
-
usePluginHook: function usePluginHook() {
|
|
61
|
-
var _api$core, _api$primaryToolbar;
|
|
62
|
-
api === null || api === void 0 || (_api$core = api.core) === null || _api$core === void 0 || _api$core.actions.execute(api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.commands.registerComponent({
|
|
63
|
-
name: 'alignment',
|
|
64
|
-
component: primaryToolbarComponent
|
|
65
|
-
}));
|
|
66
|
-
},
|
|
67
65
|
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
|
|
68
66
|
};
|
|
69
67
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-alignment",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "Alignment plugin for @atlaskit/editor-core",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"runReact18": false
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@atlaskit/adf-schema": "^40.
|
|
25
|
-
"@atlaskit/editor-common": "^87.
|
|
26
|
-
"@atlaskit/editor-plugin-primary-toolbar": "^
|
|
24
|
+
"@atlaskit/adf-schema": "^40.8.1",
|
|
25
|
+
"@atlaskit/editor-common": "^87.6.0",
|
|
26
|
+
"@atlaskit/editor-plugin-primary-toolbar": "^2.0.0",
|
|
27
27
|
"@atlaskit/editor-prosemirror": "5.0.1",
|
|
28
28
|
"@atlaskit/editor-tables": "^2.8.0",
|
|
29
|
-
"@atlaskit/icon": "^22.
|
|
29
|
+
"@atlaskit/icon": "^22.11.0",
|
|
30
30
|
"@atlaskit/platform-feature-flags": "0.3.0",
|
|
31
|
-
"@atlaskit/tokens": "^1.
|
|
31
|
+
"@atlaskit/tokens": "^1.57.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/react": "^11.7.1"
|
|
34
34
|
},
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@af/integration-testing": "*",
|
|
41
41
|
"@af/visual-regression": "*",
|
|
42
|
-
"@atlaskit/editor-plugin-list": "^3.
|
|
42
|
+
"@atlaskit/editor-plugin-list": "^3.8.0",
|
|
43
43
|
"@atlaskit/ssr": "*",
|
|
44
44
|
"@atlaskit/visual-regression": "*",
|
|
45
45
|
"@testing-library/react": "^12.1.5",
|