@atlaskit/editor-plugin-primary-toolbar 2.0.12 → 2.1.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 +8 -0
- package/dist/cjs/index.js +2 -2
- package/dist/cjs/{plugin.js → primaryToolbarPlugin.js} +2 -2
- package/dist/es2019/index.js +4 -1
- package/dist/es2019/{plugin.js → primaryToolbarPlugin.js} +2 -2
- package/dist/esm/index.js +4 -1
- package/dist/esm/{plugin.js → primaryToolbarPlugin.js} +2 -2
- package/dist/types/{actions.d.ts → editor-actions/actions.d.ts} +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/{pm-plugin.d.ts → pm-plugins/pm-plugin.d.ts} +1 -1
- package/dist/types/{toolbar-configuration.d.ts → pm-plugins/toolbar-configuration.d.ts} +1 -1
- package/dist/types/primaryToolbarPlugin.d.ts +2 -0
- package/dist/types-ts4.5/{actions.d.ts → editor-actions/actions.d.ts} +1 -1
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/{pm-plugin.d.ts → pm-plugins/pm-plugin.d.ts} +1 -1
- package/dist/types-ts4.5/{toolbar-configuration.d.ts → pm-plugins/toolbar-configuration.d.ts} +1 -1
- package/dist/types-ts4.5/primaryToolbarPlugin.d.ts +2 -0
- package/package.json +6 -5
- package/dist/types/plugin.d.ts +0 -2
- package/dist/types-ts4.5/plugin.d.ts +0 -2
- /package/dist/cjs/{actions.js → editor-actions/actions.js} +0 -0
- /package/dist/cjs/{pm-plugin.js → pm-plugins/pm-plugin.js} +0 -0
- /package/dist/cjs/{toolbar-configuration.js → pm-plugins/toolbar-configuration.js} +0 -0
- /package/dist/cjs/{types.js → primaryToolbarPluginType.js} +0 -0
- /package/dist/es2019/{actions.js → editor-actions/actions.js} +0 -0
- /package/dist/es2019/{pm-plugin.js → pm-plugins/pm-plugin.js} +0 -0
- /package/dist/es2019/{toolbar-configuration.js → pm-plugins/toolbar-configuration.js} +0 -0
- /package/dist/es2019/{types.js → primaryToolbarPluginType.js} +0 -0
- /package/dist/esm/{actions.js → editor-actions/actions.js} +0 -0
- /package/dist/esm/{pm-plugin.js → pm-plugins/pm-plugin.js} +0 -0
- /package/dist/esm/{toolbar-configuration.js → pm-plugins/toolbar-configuration.js} +0 -0
- /package/dist/esm/{types.js → primaryToolbarPluginType.js} +0 -0
- /package/dist/types/{types.d.ts → primaryToolbarPluginType.d.ts} +0 -0
- /package/dist/types-ts4.5/{types.d.ts → primaryToolbarPluginType.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-primary-toolbar
|
|
2
2
|
|
|
3
|
+
## 2.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#180749](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/180749)
|
|
8
|
+
[`44a0bb0405ea1`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/44a0bb0405ea1) -
|
|
9
|
+
Refactored folder structure to confirm to new editor standards
|
|
10
|
+
|
|
3
11
|
## 2.0.12
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "primaryToolbarPlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _primaryToolbarPlugin.primaryToolbarPlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _primaryToolbarPlugin = require("./primaryToolbarPlugin");
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.primaryToolbarPlugin = void 0;
|
|
8
|
-
var _actions = require("./actions");
|
|
9
|
-
var _pmPlugin = require("./pm-plugin");
|
|
8
|
+
var _actions = require("./editor-actions/actions");
|
|
9
|
+
var _pmPlugin = require("./pm-plugins/pm-plugin");
|
|
10
10
|
var _separator = _interopRequireDefault(require("./ui/separator"));
|
|
11
11
|
var primaryToolbarPlugin = exports.primaryToolbarPlugin = function primaryToolbarPlugin() {
|
|
12
12
|
// We use a plugin variable to store the component registry to avoid having to use
|
package/dist/es2019/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from './actions';
|
|
2
|
-
import { createPlugin, primaryToolbarPluginKey } from './pm-plugin';
|
|
1
|
+
import { registerComponent } from './editor-actions/actions';
|
|
2
|
+
import { createPlugin, primaryToolbarPluginKey } from './pm-plugins/pm-plugin';
|
|
3
3
|
import Separator from './ui/separator';
|
|
4
4
|
export const primaryToolbarPlugin = () => {
|
|
5
5
|
// We use a plugin variable to store the component registry to avoid having to use
|
package/dist/esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { registerComponent } from './actions';
|
|
2
|
-
import { createPlugin, primaryToolbarPluginKey } from './pm-plugin';
|
|
1
|
+
import { registerComponent } from './editor-actions/actions';
|
|
2
|
+
import { createPlugin, primaryToolbarPluginKey } from './pm-plugins/pm-plugin';
|
|
3
3
|
import Separator from './ui/separator';
|
|
4
4
|
export var primaryToolbarPlugin = function primaryToolbarPlugin() {
|
|
5
5
|
// We use a plugin variable to store the component registry to avoid having to use
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { ComponentRegistry, ToolbarElementNames } from '
|
|
2
|
+
import type { ComponentRegistry, ToolbarElementNames } from '../primaryToolbarPluginType';
|
|
3
3
|
export declare const registerComponent: (componentRegistry: ComponentRegistry) => ({ name, component, }: {
|
|
4
4
|
name: ToolbarElementNames;
|
|
5
5
|
component: ToolbarUIComponentFactory;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { primaryToolbarPlugin } from './
|
|
2
|
-
export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames } from './
|
|
1
|
+
export { primaryToolbarPlugin } from './primaryToolbarPlugin';
|
|
2
|
+
export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames } from './primaryToolbarPluginType';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { ComponentRegistry, PrimaryToolbarPluginState } from '
|
|
3
|
+
import type { ComponentRegistry, PrimaryToolbarPluginState } from '../primaryToolbarPluginType';
|
|
4
4
|
export declare const primaryToolbarPluginKey: PluginKey<PrimaryToolbarPluginState>;
|
|
5
5
|
export declare const createPlugin: (componentRegistry: ComponentRegistry) => SafePlugin<PrimaryToolbarPluginState>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { ComponentRegistry } from '
|
|
3
|
+
import type { ComponentRegistry } from '../primaryToolbarPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (componentRegistry: ComponentRegistry, editorState: EditorState) => ToolbarUIComponentFactory[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { ComponentRegistry, ToolbarElementNames } from '
|
|
2
|
+
import type { ComponentRegistry, ToolbarElementNames } from '../primaryToolbarPluginType';
|
|
3
3
|
export declare const registerComponent: (componentRegistry: ComponentRegistry) => ({ name, component, }: {
|
|
4
4
|
name: ToolbarElementNames;
|
|
5
5
|
component: ToolbarUIComponentFactory;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { primaryToolbarPlugin } from './
|
|
2
|
-
export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames } from './
|
|
1
|
+
export { primaryToolbarPlugin } from './primaryToolbarPlugin';
|
|
2
|
+
export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames } from './primaryToolbarPluginType';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
2
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { ComponentRegistry, PrimaryToolbarPluginState } from '
|
|
3
|
+
import type { ComponentRegistry, PrimaryToolbarPluginState } from '../primaryToolbarPluginType';
|
|
4
4
|
export declare const primaryToolbarPluginKey: PluginKey<PrimaryToolbarPluginState>;
|
|
5
5
|
export declare const createPlugin: (componentRegistry: ComponentRegistry) => SafePlugin<PrimaryToolbarPluginState>;
|
package/dist/types-ts4.5/{toolbar-configuration.d.ts → pm-plugins/toolbar-configuration.d.ts}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
3
|
-
import type { ComponentRegistry } from '
|
|
3
|
+
import type { ComponentRegistry } from '../primaryToolbarPluginType';
|
|
4
4
|
export declare const getToolbarComponents: (componentRegistry: ComponentRegistry, editorState: EditorState) => ToolbarUIComponentFactory[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-primary-toolbar",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Primary toolbar plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
".": "./src/index.ts"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@atlaskit/editor-common": "^96.
|
|
39
|
+
"@atlaskit/editor-common": "^96.5.0",
|
|
40
40
|
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
41
41
|
"@babel/runtime": "^7.0.0",
|
|
42
42
|
"@emotion/react": "^11.7.1"
|
|
@@ -49,6 +49,9 @@
|
|
|
49
49
|
},
|
|
50
50
|
"techstack": {
|
|
51
51
|
"@atlassian/frontend": {
|
|
52
|
+
"code-structure": [
|
|
53
|
+
"editor-plugin"
|
|
54
|
+
],
|
|
52
55
|
"import-structure": [
|
|
53
56
|
"atlassian-conventions"
|
|
54
57
|
],
|
|
@@ -70,9 +73,7 @@
|
|
|
70
73
|
"ui-components": [
|
|
71
74
|
"lite-mode"
|
|
72
75
|
],
|
|
73
|
-
"deprecation":
|
|
74
|
-
"no-deprecated-imports"
|
|
75
|
-
],
|
|
76
|
+
"deprecation": "no-deprecated-imports",
|
|
76
77
|
"styling": [
|
|
77
78
|
"emotion"
|
|
78
79
|
],
|
package/dist/types/plugin.d.ts
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|