@atlaskit/editor-plugin-selection-extension 2.1.7 → 2.2.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 +19 -0
- package/dist/cjs/types/index.js +5 -0
- package/dist/es2019/types/index.js +6 -0
- package/dist/esm/types/index.js +6 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/selectionExtensionPluginType.d.ts +2 -2
- package/dist/types/types/index.d.ts +7 -1
- package/dist/types-ts4.5/index.d.ts +1 -1
- package/dist/types-ts4.5/selectionExtensionPluginType.d.ts +2 -2
- package/dist/types-ts4.5/types/index.d.ts +7 -1
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 2.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#139139](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/139139)
|
|
8
|
+
[`7f6b665d778dd`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7f6b665d778dd) -
|
|
9
|
+
[https://product-fabric.atlassian.net/browse/ED-27499](ED-27499) - the new
|
|
10
|
+
`@atlassian/confluence-presets` package with Confluence `full-page` preset is created
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies
|
|
15
|
+
|
|
16
|
+
## 2.1.8
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies
|
|
21
|
+
|
|
3
22
|
## 2.1.7
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/dist/cjs/types/index.js
CHANGED
|
@@ -4,6 +4,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.SelectionExtensionActionTypes = void 0;
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* @deprecated Use {@link SelectionExtensionPluginOptions} instead.
|
|
10
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
11
|
+
*/
|
|
7
12
|
var SelectionExtensionActionTypes = exports.SelectionExtensionActionTypes = /*#__PURE__*/function (SelectionExtensionActionTypes) {
|
|
8
13
|
SelectionExtensionActionTypes["SET_ACTIVE_EXTENSION"] = "set-active-extension";
|
|
9
14
|
SelectionExtensionActionTypes["UPDATE_ACTIVE_EXTENSION_COORDS"] = "update-active-extension-coords";
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
* @deprecated Use {@link SelectionExtensionPluginOptions} instead.
|
|
4
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
export let SelectionExtensionActionTypes = /*#__PURE__*/function (SelectionExtensionActionTypes) {
|
|
2
8
|
SelectionExtensionActionTypes["SET_ACTIVE_EXTENSION"] = "set-active-extension";
|
|
3
9
|
SelectionExtensionActionTypes["UPDATE_ACTIVE_EXTENSION_COORDS"] = "update-active-extension-coords";
|
package/dist/esm/types/index.js
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @private
|
|
3
|
+
* @deprecated Use {@link SelectionExtensionPluginOptions} instead.
|
|
4
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
5
|
+
*/
|
|
6
|
+
|
|
1
7
|
export var SelectionExtensionActionTypes = /*#__PURE__*/function (SelectionExtensionActionTypes) {
|
|
2
8
|
SelectionExtensionActionTypes["SET_ACTIVE_EXTENSION"] = "set-active-extension";
|
|
3
9
|
SelectionExtensionActionTypes["UPDATE_ACTIVE_EXTENSION_COORDS"] = "update-active-extension-coords";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { selectionExtensionPlugin } from './selectionExtensionPlugin';
|
|
2
2
|
export type { SelectionExtensionPlugin } from './selectionExtensionPluginType';
|
|
3
|
-
export type { SelectionExtensionComponentProps } from './types';
|
|
3
|
+
export type { SelectionExtensionComponentProps, SelectionExtensionPluginOptions } from './types';
|
|
@@ -2,9 +2,9 @@ import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/
|
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
4
4
|
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
5
|
-
import type { SelectionExtension,
|
|
5
|
+
import type { SelectionExtension, SelectionExtensionPluginOptions, SelectionExtensionPluginState, SelectionExtensionSelectionInfo } from './types';
|
|
6
6
|
export type SelectionExtensionPlugin = NextEditorPlugin<'selectionExtension', {
|
|
7
|
-
pluginConfiguration:
|
|
7
|
+
pluginConfiguration: SelectionExtensionPluginOptions | undefined;
|
|
8
8
|
dependencies: [
|
|
9
9
|
OptionalPlugin<AnalyticsPlugin>,
|
|
10
10
|
OptionalPlugin<EditorViewModePlugin>,
|
|
@@ -37,10 +37,16 @@ export type SelectionExtensions = {
|
|
|
37
37
|
external?: SelectionExtension[];
|
|
38
38
|
};
|
|
39
39
|
type SelectionExtensionModes = ViewMode | ContentMode;
|
|
40
|
-
export type
|
|
40
|
+
export type SelectionExtensionPluginOptions = {
|
|
41
41
|
pageModes?: SelectionExtensionModes | SelectionExtensionModes[];
|
|
42
42
|
extensions?: SelectionExtensions;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* @private
|
|
46
|
+
* @deprecated Use {@link SelectionExtensionPluginOptions} instead.
|
|
47
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
48
|
+
*/
|
|
49
|
+
export type SelectionExtensionPluginConfiguration = SelectionExtensionPluginOptions;
|
|
44
50
|
export type SelectionExtensionCoords = {
|
|
45
51
|
left: number;
|
|
46
52
|
right: number;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { selectionExtensionPlugin } from './selectionExtensionPlugin';
|
|
2
2
|
export type { SelectionExtensionPlugin } from './selectionExtensionPluginType';
|
|
3
|
-
export type { SelectionExtensionComponentProps } from './types';
|
|
3
|
+
export type { SelectionExtensionComponentProps, SelectionExtensionPluginOptions } from './types';
|
|
@@ -2,9 +2,9 @@ import type { EditorCommand, NextEditorPlugin, OptionalPlugin } from '@atlaskit/
|
|
|
2
2
|
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
3
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
4
4
|
import type { SelectionToolbarPlugin } from '@atlaskit/editor-plugin-selection-toolbar';
|
|
5
|
-
import type { SelectionExtension,
|
|
5
|
+
import type { SelectionExtension, SelectionExtensionPluginOptions, SelectionExtensionPluginState, SelectionExtensionSelectionInfo } from './types';
|
|
6
6
|
export type SelectionExtensionPlugin = NextEditorPlugin<'selectionExtension', {
|
|
7
|
-
pluginConfiguration:
|
|
7
|
+
pluginConfiguration: SelectionExtensionPluginOptions | undefined;
|
|
8
8
|
dependencies: [
|
|
9
9
|
OptionalPlugin<AnalyticsPlugin>,
|
|
10
10
|
OptionalPlugin<EditorViewModePlugin>,
|
|
@@ -37,10 +37,16 @@ export type SelectionExtensions = {
|
|
|
37
37
|
external?: SelectionExtension[];
|
|
38
38
|
};
|
|
39
39
|
type SelectionExtensionModes = ViewMode | ContentMode;
|
|
40
|
-
export type
|
|
40
|
+
export type SelectionExtensionPluginOptions = {
|
|
41
41
|
pageModes?: SelectionExtensionModes | SelectionExtensionModes[];
|
|
42
42
|
extensions?: SelectionExtensions;
|
|
43
43
|
};
|
|
44
|
+
/**
|
|
45
|
+
* @private
|
|
46
|
+
* @deprecated Use {@link SelectionExtensionPluginOptions} instead.
|
|
47
|
+
* @see https://product-fabric.atlassian.net/browse/ED-27496
|
|
48
|
+
*/
|
|
49
|
+
export type SelectionExtensionPluginConfiguration = SelectionExtensionPluginOptions;
|
|
44
50
|
export type SelectionExtensionCoords = {
|
|
45
51
|
left: number;
|
|
46
52
|
right: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,13 +36,13 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^
|
|
39
|
+
"@atlaskit/editor-common": "^103.4.0",
|
|
40
40
|
"@atlaskit/editor-plugin-analytics": "^2.2.0",
|
|
41
|
-
"@atlaskit/editor-plugin-editor-viewmode": "^3.
|
|
42
|
-
"@atlaskit/editor-plugin-selection-toolbar": "^3.
|
|
41
|
+
"@atlaskit/editor-plugin-editor-viewmode": "^3.1.0",
|
|
42
|
+
"@atlaskit/editor-plugin-selection-toolbar": "^3.4.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
44
|
"@atlaskit/icon": "^25.5.0",
|
|
45
|
-
"@atlaskit/primitives": "^14.
|
|
45
|
+
"@atlaskit/primitives": "^14.4.0",
|
|
46
46
|
"@atlaskit/tmp-editor-statsig": "^4.6.0",
|
|
47
47
|
"@babel/runtime": "^7.0.0",
|
|
48
48
|
"react-intl-next": "npm:react-intl@^5.18.1",
|