@atlaskit/editor-plugin-selection-toolbar 1.5.0 → 1.5.1
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 +9 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{plugin.js → selectionToolbarPlugin.js} +2 -2
- package/dist/cjs/selectionToolbarPluginType.js +5 -0
- package/dist/es2019/index.js +1 -1
- package/dist/es2019/{plugin.js → selectionToolbarPlugin.js} +2 -2
- package/dist/es2019/selectionToolbarPluginType.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/esm/{plugin.js → selectionToolbarPlugin.js} +2 -2
- package/dist/esm/selectionToolbarPluginType.js +1 -0
- package/dist/types/index.d.ts +2 -2
- package/dist/types/selectionToolbarPlugin.d.ts +2 -0
- package/dist/types/{plugin.d.ts → selectionToolbarPluginType.d.ts} +1 -2
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/selectionToolbarPlugin.d.ts +2 -0
- package/dist/types-ts4.5/{plugin.d.ts → selectionToolbarPluginType.d.ts} +1 -2
- package/package.json +6 -3
- /package/dist/cjs/{calculate-toolbar-position.js → pm-plugins/calculate-toolbar-position.js} +0 -0
- /package/dist/cjs/{commands.js → pm-plugins/commands.js} +0 -0
- /package/dist/cjs/{plugin-key.js → pm-plugins/plugin-key.js} +0 -0
- /package/dist/cjs/{types.js → types/index.js} +0 -0
- /package/dist/es2019/{calculate-toolbar-position.js → pm-plugins/calculate-toolbar-position.js} +0 -0
- /package/dist/es2019/{commands.js → pm-plugins/commands.js} +0 -0
- /package/dist/es2019/{plugin-key.js → pm-plugins/plugin-key.js} +0 -0
- /package/dist/es2019/{types.js → types/index.js} +0 -0
- /package/dist/esm/{calculate-toolbar-position.js → pm-plugins/calculate-toolbar-position.js} +0 -0
- /package/dist/esm/{commands.js → pm-plugins/commands.js} +0 -0
- /package/dist/esm/{plugin-key.js → pm-plugins/plugin-key.js} +0 -0
- /package/dist/esm/{types.js → types/index.js} +0 -0
- /package/dist/types/{calculate-toolbar-position.d.ts → pm-plugins/calculate-toolbar-position.d.ts} +0 -0
- /package/dist/types/{commands.d.ts → pm-plugins/commands.d.ts} +0 -0
- /package/dist/types/{plugin-key.d.ts → pm-plugins/plugin-key.d.ts} +0 -0
- /package/dist/types/{types.d.ts → types/index.d.ts} +0 -0
- /package/dist/types-ts4.5/{calculate-toolbar-position.d.ts → pm-plugins/calculate-toolbar-position.d.ts} +0 -0
- /package/dist/types-ts4.5/{commands.d.ts → pm-plugins/commands.d.ts} +0 -0
- /package/dist/types-ts4.5/{plugin-key.d.ts → pm-plugins/plugin-key.d.ts} +0 -0
- /package/dist/types-ts4.5/{types.d.ts → types/index.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-toolbar
|
|
2
2
|
|
|
3
|
+
## 1.5.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#171440](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/171440)
|
|
8
|
+
[`835f7bbff3122`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/835f7bbff3122) -
|
|
9
|
+
ED-25816: refactors plugins to meet folder standards
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 1.5.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "selectionToolbarPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _selectionToolbarPlugin.selectionToolbarPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _selectionToolbarPlugin = require("./selectionToolbarPlugin");
|
|
@@ -13,8 +13,8 @@ var _utils = require("@atlaskit/editor-common/utils");
|
|
|
13
13
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
14
14
|
var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
|
|
15
15
|
var _experiments = require("@atlaskit/tmp-editor-statsig/experiments");
|
|
16
|
-
var _commands = require("./commands");
|
|
17
|
-
var _pluginKey = require("./plugin-key");
|
|
16
|
+
var _commands = require("./pm-plugins/commands");
|
|
17
|
+
var _pluginKey = require("./pm-plugins/plugin-key");
|
|
18
18
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
19
19
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
20
20
|
var selectionToolbarPlugin = exports.selectionToolbarPlugin = function selectionToolbarPlugin(options) {
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { selectionToolbarPlugin } from './
|
|
1
|
+
export { selectionToolbarPlugin } from './selectionToolbarPlugin';
|
|
@@ -4,8 +4,8 @@ import { calculateToolbarPositionAboveSelection, calculateToolbarPositionTrackHe
|
|
|
4
4
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
5
5
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
6
6
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
7
|
-
import { toggleToolbar } from './commands';
|
|
8
|
-
import { selectionToolbarPluginKey } from './plugin-key';
|
|
7
|
+
import { toggleToolbar } from './pm-plugins/commands';
|
|
8
|
+
import { selectionToolbarPluginKey } from './pm-plugins/plugin-key';
|
|
9
9
|
export const selectionToolbarPlugin = options => {
|
|
10
10
|
let __selectionToolbarHandlers = [];
|
|
11
11
|
return {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { selectionToolbarPlugin } from './
|
|
1
|
+
export { selectionToolbarPlugin } from './selectionToolbarPlugin';
|
|
@@ -8,8 +8,8 @@ import { calculateToolbarPositionAboveSelection, calculateToolbarPositionTrackHe
|
|
|
8
8
|
import { NodeSelection } from '@atlaskit/editor-prosemirror/state';
|
|
9
9
|
import { fg } from '@atlaskit/platform-feature-flags';
|
|
10
10
|
import { editorExperiment } from '@atlaskit/tmp-editor-statsig/experiments';
|
|
11
|
-
import { toggleToolbar } from './commands';
|
|
12
|
-
import { selectionToolbarPluginKey } from './plugin-key';
|
|
11
|
+
import { toggleToolbar } from './pm-plugins/commands';
|
|
12
|
+
import { selectionToolbarPluginKey } from './pm-plugins/plugin-key';
|
|
13
13
|
export var selectionToolbarPlugin = function selectionToolbarPlugin(options) {
|
|
14
14
|
var __selectionToolbarHandlers = [];
|
|
15
15
|
return _objectSpread(_objectSpread({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { selectionToolbarPlugin } from './
|
|
2
|
-
export type { SelectionToolbarPlugin } from './
|
|
1
|
+
export { selectionToolbarPlugin } from './selectionToolbarPlugin';
|
|
2
|
+
export type { SelectionToolbarPlugin } from './selectionToolbarPluginType';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
3
|
-
export
|
|
3
|
+
export type SelectionToolbarPlugin = NextEditorPlugin<'selectionToolbar', {
|
|
4
4
|
pluginConfiguration: {
|
|
5
5
|
/**
|
|
6
6
|
* Defaults to false
|
|
@@ -13,4 +13,3 @@ export declare const selectionToolbarPlugin: NextEditorPlugin<'selectionToolbar'
|
|
|
13
13
|
unsuppressToolbar?: () => boolean;
|
|
14
14
|
};
|
|
15
15
|
}>;
|
|
16
|
-
export type SelectionToolbarPlugin = typeof selectionToolbarPlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { selectionToolbarPlugin } from './
|
|
2
|
-
export type { SelectionToolbarPlugin } from './
|
|
1
|
+
export { selectionToolbarPlugin } from './selectionToolbarPlugin';
|
|
2
|
+
export type { SelectionToolbarPlugin } from './selectionToolbarPluginType';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EditorViewModePlugin } from '@atlaskit/editor-plugin-editor-viewmode';
|
|
3
|
-
export
|
|
3
|
+
export type SelectionToolbarPlugin = NextEditorPlugin<'selectionToolbar', {
|
|
4
4
|
pluginConfiguration: {
|
|
5
5
|
/**
|
|
6
6
|
* Defaults to false
|
|
@@ -15,4 +15,3 @@ export declare const selectionToolbarPlugin: NextEditorPlugin<'selectionToolbar'
|
|
|
15
15
|
unsuppressToolbar?: () => boolean;
|
|
16
16
|
};
|
|
17
17
|
}>;
|
|
18
|
-
export type SelectionToolbarPlugin = typeof selectionToolbarPlugin;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-toolbar",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "@atlaskit/editor-plugin-selection-toolbar for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,11 +36,11 @@
|
|
|
36
36
|
}
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^96.
|
|
39
|
+
"@atlaskit/editor-common": "^96.3.0",
|
|
40
40
|
"@atlaskit/editor-plugin-editor-viewmode": "^2.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
42
42
|
"@atlaskit/platform-feature-flags": "^0.3.0",
|
|
43
|
-
"@atlaskit/tmp-editor-statsig": "^2.
|
|
43
|
+
"@atlaskit/tmp-editor-statsig": "^2.24.0",
|
|
44
44
|
"@babel/runtime": "^7.0.0",
|
|
45
45
|
"bind-event-listener": "^3.0.0"
|
|
46
46
|
},
|
|
@@ -58,6 +58,9 @@
|
|
|
58
58
|
},
|
|
59
59
|
"techstack": {
|
|
60
60
|
"@atlassian/frontend": {
|
|
61
|
+
"code-structure": [
|
|
62
|
+
"editor-plugin"
|
|
63
|
+
],
|
|
61
64
|
"import-structure": [
|
|
62
65
|
"atlassian-conventions"
|
|
63
66
|
],
|
/package/dist/cjs/{calculate-toolbar-position.js → pm-plugins/calculate-toolbar-position.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/es2019/{calculate-toolbar-position.js → pm-plugins/calculate-toolbar-position.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/esm/{calculate-toolbar-position.js → pm-plugins/calculate-toolbar-position.js}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/types/{calculate-toolbar-position.d.ts → pm-plugins/calculate-toolbar-position.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|