@atlaskit/editor-plugin-guideline 1.2.16 → 1.2.18
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 +15 -0
- package/dist/cjs/{plugin.js → guidelinePlugin.js} +2 -1
- package/dist/cjs/guidelinePluginType.js +5 -0
- package/dist/cjs/index.js +2 -2
- package/dist/es2019/{plugin.js → guidelinePlugin.js} +2 -1
- package/dist/es2019/guidelinePluginType.js +1 -0
- package/dist/es2019/index.js +1 -1
- package/dist/esm/{plugin.js → guidelinePlugin.js} +2 -1
- package/dist/esm/guidelinePluginType.js +1 -0
- package/dist/esm/index.js +1 -1
- package/dist/types/guidelinePlugin.d.ts +8 -0
- package/dist/types/{plugin.d.ts → guidelinePluginType.d.ts} +0 -6
- package/dist/types/index.d.ts +2 -2
- package/dist/types/{guideline.d.ts → ui/guideline.d.ts} +1 -1
- package/dist/types/{guidelineContainer.d.ts → ui/guidelineContainer.d.ts} +1 -1
- package/dist/types/{positionStyles.d.ts → ui/positionStyles.d.ts} +1 -1
- package/dist/types/{utils.d.ts → ui/utils.d.ts} +1 -1
- package/dist/types-ts4.5/guidelinePlugin.d.ts +8 -0
- package/dist/types-ts4.5/{plugin.d.ts → guidelinePluginType.d.ts} +0 -6
- package/dist/types-ts4.5/index.d.ts +2 -2
- package/dist/types-ts4.5/{guideline.d.ts → ui/guideline.d.ts} +1 -1
- package/dist/types-ts4.5/{guidelineContainer.d.ts → ui/guidelineContainer.d.ts} +1 -1
- package/dist/types-ts4.5/{positionStyles.d.ts → ui/positionStyles.d.ts} +1 -1
- package/dist/types-ts4.5/{utils.d.ts → ui/utils.d.ts} +1 -1
- package/package.json +7 -4
- /package/dist/cjs/{types.js → types/index.js} +0 -0
- /package/dist/cjs/{constants.js → ui/constants.js} +0 -0
- /package/dist/cjs/{guideline.js → ui/guideline.js} +0 -0
- /package/dist/cjs/{guidelineContainer.js → ui/guidelineContainer.js} +0 -0
- /package/dist/cjs/{positionStyles.js → ui/positionStyles.js} +0 -0
- /package/dist/cjs/{utils.js → ui/utils.js} +0 -0
- /package/dist/es2019/{types.js → types/index.js} +0 -0
- /package/dist/es2019/{constants.js → ui/constants.js} +0 -0
- /package/dist/es2019/{guideline.js → ui/guideline.js} +0 -0
- /package/dist/es2019/{guidelineContainer.js → ui/guidelineContainer.js} +0 -0
- /package/dist/es2019/{positionStyles.js → ui/positionStyles.js} +0 -0
- /package/dist/es2019/{utils.js → ui/utils.js} +0 -0
- /package/dist/esm/{types.js → types/index.js} +0 -0
- /package/dist/esm/{constants.js → ui/constants.js} +0 -0
- /package/dist/esm/{guideline.js → ui/guideline.js} +0 -0
- /package/dist/esm/{guidelineContainer.js → ui/guidelineContainer.js} +0 -0
- /package/dist/esm/{positionStyles.js → ui/positionStyles.js} +0 -0
- /package/dist/esm/{utils.js → ui/utils.js} +0 -0
- /package/dist/types/{types.d.ts → types/index.d.ts} +0 -0
- /package/dist/types/{constants.d.ts → ui/constants.d.ts} +0 -0
- /package/dist/types-ts4.5/{types.d.ts → types/index.d.ts} +0 -0
- /package/dist/types-ts4.5/{constants.d.ts → ui/constants.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-guideline
|
|
2
2
|
|
|
3
|
+
## 1.2.18
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 1.2.17
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#169604](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/169604)
|
|
14
|
+
[`11e14d646fe74`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/11e14d646fe74) -
|
|
15
|
+
ED-25811: refactors plugins to meet folder standards
|
|
16
|
+
- Updated dependencies
|
|
17
|
+
|
|
3
18
|
## 1.2.16
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
|
@@ -11,7 +11,7 @@ var _hooks = require("@atlaskit/editor-common/hooks");
|
|
|
11
11
|
var _safePlugin = require("@atlaskit/editor-common/safe-plugin");
|
|
12
12
|
var _state = require("@atlaskit/editor-prosemirror/state");
|
|
13
13
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
14
|
-
var _guidelineContainer = require("./guidelineContainer");
|
|
14
|
+
var _guidelineContainer = require("./ui/guidelineContainer");
|
|
15
15
|
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; }
|
|
16
16
|
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; } /**
|
|
17
17
|
* @jsxRuntime classic
|
|
@@ -95,6 +95,7 @@ var ContentComponent = function ContentComponent(_ref) {
|
|
|
95
95
|
updateRect: updateRect
|
|
96
96
|
}));
|
|
97
97
|
};
|
|
98
|
+
|
|
98
99
|
/**
|
|
99
100
|
* Guideline plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
100
101
|
* from `@atlaskit/editor-core`.
|
package/dist/cjs/index.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "guidelinePlugin", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function get() {
|
|
9
|
-
return
|
|
9
|
+
return _guidelinePlugin.guidelinePlugin;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
|
-
var
|
|
12
|
+
var _guidelinePlugin = require("./guidelinePlugin");
|
|
@@ -8,7 +8,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
|
8
8
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
9
9
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
10
10
|
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
11
|
-
import { GuidelineContainer } from './guidelineContainer';
|
|
11
|
+
import { GuidelineContainer } from './ui/guidelineContainer';
|
|
12
12
|
const guidelineStyles = css({
|
|
13
13
|
position: 'absolute',
|
|
14
14
|
width: '100%',
|
|
@@ -96,6 +96,7 @@ const ContentComponent = ({
|
|
|
96
96
|
updateRect: updateRect
|
|
97
97
|
}));
|
|
98
98
|
};
|
|
99
|
+
|
|
99
100
|
/**
|
|
100
101
|
* Guideline plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
101
102
|
* from `@atlaskit/editor-core`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/es2019/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { guidelinePlugin } from './
|
|
1
|
+
export { guidelinePlugin } from './guidelinePlugin';
|
|
@@ -11,7 +11,7 @@ import { useSharedPluginState } from '@atlaskit/editor-common/hooks';
|
|
|
11
11
|
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
12
12
|
import { PluginKey } from '@atlaskit/editor-prosemirror/state';
|
|
13
13
|
import { akEditorGridLineZIndex } from '@atlaskit/editor-shared-styles';
|
|
14
|
-
import { GuidelineContainer } from './guidelineContainer';
|
|
14
|
+
import { GuidelineContainer } from './ui/guidelineContainer';
|
|
15
15
|
var guidelineStyles = css({
|
|
16
16
|
position: 'absolute',
|
|
17
17
|
width: '100%',
|
|
@@ -90,6 +90,7 @@ var ContentComponent = function ContentComponent(_ref) {
|
|
|
90
90
|
updateRect: updateRect
|
|
91
91
|
}));
|
|
92
92
|
};
|
|
93
|
+
|
|
93
94
|
/**
|
|
94
95
|
* Guideline plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
95
96
|
* from `@atlaskit/editor-core`.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/esm/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { guidelinePlugin } from './
|
|
1
|
+
export { guidelinePlugin } from './guidelinePlugin';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GuidelinePlugin } from './guidelinePluginType';
|
|
2
|
+
import type { GuidelinePluginState } from './types';
|
|
3
|
+
export declare const EMPTY_STATE: GuidelinePluginState;
|
|
4
|
+
/**
|
|
5
|
+
* Guideline plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
6
|
+
* from `@atlaskit/editor-core`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const guidelinePlugin: GuidelinePlugin;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
3
|
import type { DisplayGuideline, GuidelinePluginState } from './types';
|
|
4
|
-
export declare const EMPTY_STATE: GuidelinePluginState;
|
|
5
4
|
export type GuidelinePlugin = NextEditorPlugin<'guideline', {
|
|
6
5
|
dependencies: [WidthPlugin];
|
|
7
6
|
sharedState: GuidelinePluginState | null;
|
|
@@ -9,8 +8,3 @@ export type GuidelinePlugin = NextEditorPlugin<'guideline', {
|
|
|
9
8
|
displayGuideline: DisplayGuideline;
|
|
10
9
|
};
|
|
11
10
|
}>;
|
|
12
|
-
/**
|
|
13
|
-
* Guideline plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
14
|
-
* from `@atlaskit/editor-core`.
|
|
15
|
-
*/
|
|
16
|
-
export declare const guidelinePlugin: GuidelinePlugin;
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { guidelinePlugin } from './
|
|
2
|
-
export type { GuidelinePlugin } from './
|
|
1
|
+
export { guidelinePlugin } from './guidelinePlugin';
|
|
2
|
+
export type { GuidelinePlugin } from './guidelinePluginType';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GuidelineConfig } from '
|
|
1
|
+
import type { GuidelineConfig } from '../types';
|
|
2
2
|
export declare const innerGuidelines: (editorContainerWidth: number, editorWidth?: number) => GuidelineConfig[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { GuidelinePlugin } from './guidelinePluginType';
|
|
2
|
+
import type { GuidelinePluginState } from './types';
|
|
3
|
+
export declare const EMPTY_STATE: GuidelinePluginState;
|
|
4
|
+
/**
|
|
5
|
+
* Guideline plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
6
|
+
* from `@atlaskit/editor-core`.
|
|
7
|
+
*/
|
|
8
|
+
export declare const guidelinePlugin: GuidelinePlugin;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
|
|
2
2
|
import type { WidthPlugin } from '@atlaskit/editor-plugin-width';
|
|
3
3
|
import type { DisplayGuideline, GuidelinePluginState } from './types';
|
|
4
|
-
export declare const EMPTY_STATE: GuidelinePluginState;
|
|
5
4
|
export type GuidelinePlugin = NextEditorPlugin<'guideline', {
|
|
6
5
|
dependencies: [
|
|
7
6
|
WidthPlugin
|
|
@@ -11,8 +10,3 @@ export type GuidelinePlugin = NextEditorPlugin<'guideline', {
|
|
|
11
10
|
displayGuideline: DisplayGuideline;
|
|
12
11
|
};
|
|
13
12
|
}>;
|
|
14
|
-
/**
|
|
15
|
-
* Guideline plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
|
|
16
|
-
* from `@atlaskit/editor-core`.
|
|
17
|
-
*/
|
|
18
|
-
export declare const guidelinePlugin: GuidelinePlugin;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { guidelinePlugin } from './
|
|
2
|
-
export type { GuidelinePlugin } from './
|
|
1
|
+
export { guidelinePlugin } from './guidelinePlugin';
|
|
2
|
+
export type { GuidelinePlugin } from './guidelinePluginType';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { GuidelineConfig } from '
|
|
1
|
+
import type { GuidelineConfig } from '../types';
|
|
2
2
|
export declare const innerGuidelines: (editorContainerWidth: number, editorWidth?: number) => GuidelineConfig[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-guideline",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.18",
|
|
4
4
|
"description": "guideline plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
".": "./src/index.ts"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@atlaskit/editor-common": "^
|
|
26
|
+
"@atlaskit/editor-common": "^96.0.0",
|
|
27
27
|
"@atlaskit/editor-plugin-width": "^1.3.0",
|
|
28
|
-
"@atlaskit/editor-prosemirror": "6.
|
|
28
|
+
"@atlaskit/editor-prosemirror": "6.2.1",
|
|
29
29
|
"@atlaskit/editor-shared-styles": "^3.2.0",
|
|
30
30
|
"@atlaskit/theme": "^14.0.0",
|
|
31
|
-
"@atlaskit/tokens": "^2.
|
|
31
|
+
"@atlaskit/tokens": "^2.4.0",
|
|
32
32
|
"@babel/runtime": "^7.0.0",
|
|
33
33
|
"@emotion/react": "^11.7.1"
|
|
34
34
|
},
|
|
@@ -44,6 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"techstack": {
|
|
46
46
|
"@atlassian/frontend": {
|
|
47
|
+
"code-structure": [
|
|
48
|
+
"editor-plugin"
|
|
49
|
+
],
|
|
47
50
|
"import-structure": [
|
|
48
51
|
"atlassian-conventions"
|
|
49
52
|
],
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|