@atlaskit/editor-plugin-grid 1.2.12 → 1.2.14

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 CHANGED
@@ -1,5 +1,20 @@
1
1
  # @atlaskit/editor-plugin-grid
2
2
 
3
+ ## 1.2.14
4
+
5
+ ### Patch Changes
6
+
7
+ - [#169604](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/169604)
8
+ [`11e14d646fe74`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/11e14d646fe74) -
9
+ ED-25811: refactors plugins to meet folder standards
10
+ - Updated dependencies
11
+
12
+ ## 1.2.13
13
+
14
+ ### Patch Changes
15
+
16
+ - Updated dependencies
17
+
3
18
  ## 1.2.12
4
19
 
5
20
  ### Patch Changes
@@ -159,6 +159,7 @@ var gridPMPlugin = new _safePlugin.SafePlugin({
159
159
  }
160
160
  }
161
161
  });
162
+
162
163
  /**
163
164
  * Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
164
165
  * from `@atlaskit/editor-core`.
package/dist/cjs/index.js CHANGED
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
6
6
  Object.defineProperty(exports, "gridPlugin", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _plugin.gridPlugin;
9
+ return _gridPlugin.gridPlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
12
+ var _gridPlugin = require("./gridPlugin");
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -154,6 +154,7 @@ const gridPMPlugin = new SafePlugin({
154
154
  }
155
155
  }
156
156
  });
157
+
157
158
  /**
158
159
  * Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
159
160
  * from `@atlaskit/editor-core`.
@@ -1 +1 @@
1
- export { gridPlugin } from './plugin';
1
+ export { gridPlugin } from './gridPlugin';
@@ -152,6 +152,7 @@ var gridPMPlugin = new SafePlugin({
152
152
  }
153
153
  }
154
154
  });
155
+
155
156
  /**
156
157
  * Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
157
158
  * from `@atlaskit/editor-core`.
@@ -0,0 +1 @@
1
+ export {};
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export { gridPlugin } from './plugin';
1
+ export { gridPlugin } from './gridPlugin';
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import type { GridPlugin } from './gridPluginType';
2
+ export declare const GRID_SIZE = 12;
3
+ /**
4
+ * Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
5
+ * from `@atlaskit/editor-core`.
6
+ */
7
+ export declare const gridPlugin: GridPlugin;
@@ -0,0 +1,11 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
3
+ import type { CreateDisplayGrid, GridPluginOptions, GridPluginState } from './types';
4
+ export type GridPlugin = NextEditorPlugin<'grid', {
5
+ pluginConfiguration: GridPluginOptions | undefined;
6
+ dependencies: [WidthPlugin];
7
+ sharedState: GridPluginState | null;
8
+ actions: {
9
+ displayGrid: CreateDisplayGrid;
10
+ };
11
+ }>;
@@ -1,3 +1,3 @@
1
- export { gridPlugin } from './plugin';
2
- export type { GridPlugin, GridPluginOptions } from './plugin';
3
- export type { Highlights, GridPluginState } from './types';
1
+ export { gridPlugin } from './gridPlugin';
2
+ export type { GridPlugin } from './gridPluginType';
3
+ export type { CreateDisplayGrid, Highlights, GridPluginOptions, GridPluginState } from './types';
@@ -0,0 +1,17 @@
1
+ import type { GridType } from '@atlaskit/editor-common/types';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ export type Highlights = Array<'wide' | 'full-width' | number>;
4
+ export type GridPluginState = {
5
+ visible: boolean;
6
+ gridType?: GridType;
7
+ highlight: Highlights;
8
+ };
9
+ type Required<T> = {
10
+ [P in keyof T]-?: T[P];
11
+ };
12
+ type DisplayGrid = (props: Required<GridPluginState>) => boolean;
13
+ export type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
14
+ export interface GridPluginOptions {
15
+ shouldCalcBreakoutGridLines?: boolean;
16
+ }
17
+ export type { GridType };
@@ -0,0 +1,7 @@
1
+ import type { GridPlugin } from './gridPluginType';
2
+ export declare const GRID_SIZE = 12;
3
+ /**
4
+ * Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
5
+ * from `@atlaskit/editor-core`.
6
+ */
7
+ export declare const gridPlugin: GridPlugin;
@@ -0,0 +1,13 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
3
+ import type { CreateDisplayGrid, GridPluginOptions, GridPluginState } from './types';
4
+ export type GridPlugin = NextEditorPlugin<'grid', {
5
+ pluginConfiguration: GridPluginOptions | undefined;
6
+ dependencies: [
7
+ WidthPlugin
8
+ ];
9
+ sharedState: GridPluginState | null;
10
+ actions: {
11
+ displayGrid: CreateDisplayGrid;
12
+ };
13
+ }>;
@@ -1,3 +1,3 @@
1
- export { gridPlugin } from './plugin';
2
- export type { GridPlugin, GridPluginOptions } from './plugin';
3
- export type { Highlights, GridPluginState } from './types';
1
+ export { gridPlugin } from './gridPlugin';
2
+ export type { GridPlugin } from './gridPluginType';
3
+ export type { CreateDisplayGrid, Highlights, GridPluginOptions, GridPluginState } from './types';
@@ -0,0 +1,17 @@
1
+ import type { GridType } from '@atlaskit/editor-common/types';
2
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ export type Highlights = Array<'wide' | 'full-width' | number>;
4
+ export type GridPluginState = {
5
+ visible: boolean;
6
+ gridType?: GridType;
7
+ highlight: Highlights;
8
+ };
9
+ type Required<T> = {
10
+ [P in keyof T]-?: T[P];
11
+ };
12
+ type DisplayGrid = (props: Required<GridPluginState>) => boolean;
13
+ export type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
14
+ export interface GridPluginOptions {
15
+ shouldCalcBreakoutGridLines?: boolean;
16
+ }
17
+ export type { GridType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-grid",
3
- "version": "1.2.12",
3
+ "version": "1.2.14",
4
4
  "description": "Grid plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,10 +23,10 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^94.2.0",
26
+ "@atlaskit/editor-common": "^95.10.0",
27
27
  "@atlaskit/editor-plugin-width": "^1.3.0",
28
- "@atlaskit/editor-prosemirror": "6.0.0",
29
- "@atlaskit/editor-shared-styles": "^3.0.0",
28
+ "@atlaskit/editor-prosemirror": "6.2.1",
29
+ "@atlaskit/editor-shared-styles": "^3.2.0",
30
30
  "@babel/runtime": "^7.0.0",
31
31
  "@emotion/react": "^11.7.1",
32
32
  "classnames": "^2.2.5"
@@ -42,6 +42,9 @@
42
42
  },
43
43
  "techstack": {
44
44
  "@atlassian/frontend": {
45
+ "code-structure": [
46
+ "editor-plugin"
47
+ ],
45
48
  "import-structure": [
46
49
  "atlassian-conventions"
47
50
  ],
@@ -1,27 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { GridPluginState } from './types';
5
- export declare const GRID_SIZE = 12;
6
- type Required<T> = {
7
- [P in keyof T]-?: T[P];
8
- };
9
- type DisplayGrid = (props: Required<GridPluginState>) => boolean;
10
- type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
11
- export interface GridPluginOptions {
12
- shouldCalcBreakoutGridLines?: boolean;
13
- }
14
- export type GridPlugin = NextEditorPlugin<'grid', {
15
- pluginConfiguration: GridPluginOptions | undefined;
16
- dependencies: [WidthPlugin];
17
- sharedState: GridPluginState | null;
18
- actions: {
19
- displayGrid: CreateDisplayGrid;
20
- };
21
- }>;
22
- /**
23
- * Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
24
- * from `@atlaskit/editor-core`.
25
- */
26
- export declare const gridPlugin: GridPlugin;
27
- export {};
@@ -1,8 +0,0 @@
1
- import type { GridType } from '@atlaskit/editor-common/types';
2
- export type Highlights = Array<'wide' | 'full-width' | number>;
3
- export type GridPluginState = {
4
- visible: boolean;
5
- gridType?: GridType;
6
- highlight: Highlights;
7
- };
8
- export type { GridType };
@@ -1,29 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
3
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
- import type { GridPluginState } from './types';
5
- export declare const GRID_SIZE = 12;
6
- type Required<T> = {
7
- [P in keyof T]-?: T[P];
8
- };
9
- type DisplayGrid = (props: Required<GridPluginState>) => boolean;
10
- type CreateDisplayGrid = (view: EditorView) => DisplayGrid;
11
- export interface GridPluginOptions {
12
- shouldCalcBreakoutGridLines?: boolean;
13
- }
14
- export type GridPlugin = NextEditorPlugin<'grid', {
15
- pluginConfiguration: GridPluginOptions | undefined;
16
- dependencies: [
17
- WidthPlugin
18
- ];
19
- sharedState: GridPluginState | null;
20
- actions: {
21
- displayGrid: CreateDisplayGrid;
22
- };
23
- }>;
24
- /**
25
- * Grid plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
26
- * from `@atlaskit/editor-core`.
27
- */
28
- export declare const gridPlugin: GridPlugin;
29
- export {};
@@ -1,8 +0,0 @@
1
- import type { GridType } from '@atlaskit/editor-common/types';
2
- export type Highlights = Array<'wide' | 'full-width' | number>;
3
- export type GridPluginState = {
4
- visible: boolean;
5
- gridType?: GridType;
6
- highlight: Highlights;
7
- };
8
- export type { GridType };
File without changes
File without changes
File without changes