@atlaskit/editor-plugin-primary-toolbar 2.0.11 → 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.
Files changed (34) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/index.js +2 -2
  3. package/dist/cjs/{plugin.js → primaryToolbarPlugin.js} +2 -2
  4. package/dist/es2019/index.js +4 -1
  5. package/dist/es2019/{plugin.js → primaryToolbarPlugin.js} +2 -2
  6. package/dist/esm/index.js +4 -1
  7. package/dist/esm/{plugin.js → primaryToolbarPlugin.js} +2 -2
  8. package/dist/types/{actions.d.ts → editor-actions/actions.d.ts} +1 -1
  9. package/dist/types/index.d.ts +2 -2
  10. package/dist/types/{pm-plugin.d.ts → pm-plugins/pm-plugin.d.ts} +1 -1
  11. package/dist/types/{toolbar-configuration.d.ts → pm-plugins/toolbar-configuration.d.ts} +1 -1
  12. package/dist/types/primaryToolbarPlugin.d.ts +2 -0
  13. package/dist/types-ts4.5/{actions.d.ts → editor-actions/actions.d.ts} +1 -1
  14. package/dist/types-ts4.5/index.d.ts +2 -2
  15. package/dist/types-ts4.5/{pm-plugin.d.ts → pm-plugins/pm-plugin.d.ts} +1 -1
  16. package/dist/types-ts4.5/{toolbar-configuration.d.ts → pm-plugins/toolbar-configuration.d.ts} +1 -1
  17. package/dist/types-ts4.5/primaryToolbarPlugin.d.ts +2 -0
  18. package/package.json +7 -6
  19. package/dist/types/plugin.d.ts +0 -2
  20. package/dist/types-ts4.5/plugin.d.ts +0 -2
  21. /package/dist/cjs/{actions.js → editor-actions/actions.js} +0 -0
  22. /package/dist/cjs/{pm-plugin.js → pm-plugins/pm-plugin.js} +0 -0
  23. /package/dist/cjs/{toolbar-configuration.js → pm-plugins/toolbar-configuration.js} +0 -0
  24. /package/dist/cjs/{types.js → primaryToolbarPluginType.js} +0 -0
  25. /package/dist/es2019/{actions.js → editor-actions/actions.js} +0 -0
  26. /package/dist/es2019/{pm-plugin.js → pm-plugins/pm-plugin.js} +0 -0
  27. /package/dist/es2019/{toolbar-configuration.js → pm-plugins/toolbar-configuration.js} +0 -0
  28. /package/dist/es2019/{types.js → primaryToolbarPluginType.js} +0 -0
  29. /package/dist/esm/{actions.js → editor-actions/actions.js} +0 -0
  30. /package/dist/esm/{pm-plugin.js → pm-plugins/pm-plugin.js} +0 -0
  31. /package/dist/esm/{toolbar-configuration.js → pm-plugins/toolbar-configuration.js} +0 -0
  32. /package/dist/esm/{types.js → primaryToolbarPluginType.js} +0 -0
  33. /package/dist/types/{types.d.ts → primaryToolbarPluginType.d.ts} +0 -0
  34. /package/dist/types-ts4.5/{types.d.ts → primaryToolbarPluginType.d.ts} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
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
+
11
+ ## 2.0.12
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 2.0.11
4
18
 
5
19
  ### 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 _plugin.primaryToolbarPlugin;
9
+ return _primaryToolbarPlugin.primaryToolbarPlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
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
@@ -1 +1,4 @@
1
- export { primaryToolbarPlugin } from './plugin';
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
4
+ export { primaryToolbarPlugin } from './primaryToolbarPlugin';
@@ -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 +1,4 @@
1
- export { primaryToolbarPlugin } from './plugin';
1
+ /* eslint-disable @atlaskit/editor/no-re-export */
2
+ // Entry file in package.json
3
+
4
+ export { primaryToolbarPlugin } from './primaryToolbarPlugin';
@@ -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 './types';
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 './plugin';
2
- export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames } from './types';
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 './types';
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 './types';
3
+ import type { ComponentRegistry } from '../primaryToolbarPluginType';
4
4
  export declare const getToolbarComponents: (componentRegistry: ComponentRegistry, editorState: EditorState) => ToolbarUIComponentFactory[];
@@ -0,0 +1,2 @@
1
+ import type { PrimaryToolbarPlugin } from './primaryToolbarPluginType';
2
+ export declare const primaryToolbarPlugin: PrimaryToolbarPlugin;
@@ -1,5 +1,5 @@
1
1
  import type { ToolbarUIComponentFactory } from '@atlaskit/editor-common/types';
2
- import type { ComponentRegistry, ToolbarElementNames } from './types';
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 './plugin';
2
- export type { PrimaryToolbarPlugin, PrimaryToolbarPluginState, ToolbarElementNames } from './types';
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 './types';
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 './types';
3
+ import type { ComponentRegistry } from '../primaryToolbarPluginType';
4
4
  export declare const getToolbarComponents: (componentRegistry: ComponentRegistry, editorState: EditorState) => ToolbarUIComponentFactory[];
@@ -0,0 +1,2 @@
1
+ import type { PrimaryToolbarPlugin } from './primaryToolbarPluginType';
2
+ export declare const primaryToolbarPlugin: PrimaryToolbarPlugin;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-primary-toolbar",
3
- "version": "2.0.11",
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,8 +36,8 @@
36
36
  ".": "./src/index.ts"
37
37
  },
38
38
  "dependencies": {
39
- "@atlaskit/editor-common": "^95.0.0",
40
- "@atlaskit/editor-prosemirror": "6.0.0",
39
+ "@atlaskit/editor-common": "^96.5.0",
40
+ "@atlaskit/editor-prosemirror": "6.2.1",
41
41
  "@babel/runtime": "^7.0.0",
42
42
  "@emotion/react": "^11.7.1"
43
43
  },
@@ -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
  ],
@@ -1,2 +0,0 @@
1
- import type { PrimaryToolbarPlugin } from './types';
2
- export declare const primaryToolbarPlugin: PrimaryToolbarPlugin;
@@ -1,2 +0,0 @@
1
- import type { PrimaryToolbarPlugin } from './types';
2
- export declare const primaryToolbarPlugin: PrimaryToolbarPlugin;