@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.
Files changed (47) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cjs/{plugin.js → guidelinePlugin.js} +2 -1
  3. package/dist/cjs/guidelinePluginType.js +5 -0
  4. package/dist/cjs/index.js +2 -2
  5. package/dist/es2019/{plugin.js → guidelinePlugin.js} +2 -1
  6. package/dist/es2019/guidelinePluginType.js +1 -0
  7. package/dist/es2019/index.js +1 -1
  8. package/dist/esm/{plugin.js → guidelinePlugin.js} +2 -1
  9. package/dist/esm/guidelinePluginType.js +1 -0
  10. package/dist/esm/index.js +1 -1
  11. package/dist/types/guidelinePlugin.d.ts +8 -0
  12. package/dist/types/{plugin.d.ts → guidelinePluginType.d.ts} +0 -6
  13. package/dist/types/index.d.ts +2 -2
  14. package/dist/types/{guideline.d.ts → ui/guideline.d.ts} +1 -1
  15. package/dist/types/{guidelineContainer.d.ts → ui/guidelineContainer.d.ts} +1 -1
  16. package/dist/types/{positionStyles.d.ts → ui/positionStyles.d.ts} +1 -1
  17. package/dist/types/{utils.d.ts → ui/utils.d.ts} +1 -1
  18. package/dist/types-ts4.5/guidelinePlugin.d.ts +8 -0
  19. package/dist/types-ts4.5/{plugin.d.ts → guidelinePluginType.d.ts} +0 -6
  20. package/dist/types-ts4.5/index.d.ts +2 -2
  21. package/dist/types-ts4.5/{guideline.d.ts → ui/guideline.d.ts} +1 -1
  22. package/dist/types-ts4.5/{guidelineContainer.d.ts → ui/guidelineContainer.d.ts} +1 -1
  23. package/dist/types-ts4.5/{positionStyles.d.ts → ui/positionStyles.d.ts} +1 -1
  24. package/dist/types-ts4.5/{utils.d.ts → ui/utils.d.ts} +1 -1
  25. package/package.json +7 -4
  26. /package/dist/cjs/{types.js → types/index.js} +0 -0
  27. /package/dist/cjs/{constants.js → ui/constants.js} +0 -0
  28. /package/dist/cjs/{guideline.js → ui/guideline.js} +0 -0
  29. /package/dist/cjs/{guidelineContainer.js → ui/guidelineContainer.js} +0 -0
  30. /package/dist/cjs/{positionStyles.js → ui/positionStyles.js} +0 -0
  31. /package/dist/cjs/{utils.js → ui/utils.js} +0 -0
  32. /package/dist/es2019/{types.js → types/index.js} +0 -0
  33. /package/dist/es2019/{constants.js → ui/constants.js} +0 -0
  34. /package/dist/es2019/{guideline.js → ui/guideline.js} +0 -0
  35. /package/dist/es2019/{guidelineContainer.js → ui/guidelineContainer.js} +0 -0
  36. /package/dist/es2019/{positionStyles.js → ui/positionStyles.js} +0 -0
  37. /package/dist/es2019/{utils.js → ui/utils.js} +0 -0
  38. /package/dist/esm/{types.js → types/index.js} +0 -0
  39. /package/dist/esm/{constants.js → ui/constants.js} +0 -0
  40. /package/dist/esm/{guideline.js → ui/guideline.js} +0 -0
  41. /package/dist/esm/{guidelineContainer.js → ui/guidelineContainer.js} +0 -0
  42. /package/dist/esm/{positionStyles.js → ui/positionStyles.js} +0 -0
  43. /package/dist/esm/{utils.js → ui/utils.js} +0 -0
  44. /package/dist/types/{types.d.ts → types/index.d.ts} +0 -0
  45. /package/dist/types/{constants.d.ts → ui/constants.d.ts} +0 -0
  46. /package/dist/types-ts4.5/{types.d.ts → types/index.d.ts} +0 -0
  47. /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`.
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
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 _plugin.guidelinePlugin;
9
+ return _guidelinePlugin.guidelinePlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
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 {};
@@ -1 +1 @@
1
- export { guidelinePlugin } from './plugin';
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 './plugin';
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;
@@ -1,2 +1,2 @@
1
- export { guidelinePlugin } from './plugin';
2
- export type { GuidelinePlugin } from './plugin';
1
+ export { guidelinePlugin } from './guidelinePlugin';
2
+ export type { GuidelinePlugin } from './guidelinePluginType';
@@ -3,5 +3,5 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import type { GuidelineConfig } from './types';
6
+ import type { GuidelineConfig } from '../types';
7
7
  export declare const Guideline: (props: Omit<GuidelineConfig, 'key'>) => jsx.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import type { GuidelineConfig, GuidelineContainerRect } from './types';
2
+ import type { GuidelineConfig, GuidelineContainerRect } from '../types';
3
3
  type ContainerProps = {
4
4
  guidelines: GuidelineConfig[];
5
5
  height: number;
@@ -1,4 +1,4 @@
1
1
  import type { CSSProperties } from 'react';
2
- import { type Position } from './types';
2
+ import { type Position } from '../types';
3
3
  export declare const isNumber: (x: unknown) => x is number;
4
4
  export declare const getPositionStyles: (pos: Position) => CSSProperties;
@@ -1,2 +1,2 @@
1
- import type { GuidelineConfig } from './types';
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 './plugin';
2
- export type { GuidelinePlugin } from './plugin';
1
+ export { guidelinePlugin } from './guidelinePlugin';
2
+ export type { GuidelinePlugin } from './guidelinePluginType';
@@ -3,5 +3,5 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import { jsx } from '@emotion/react';
6
- import type { GuidelineConfig } from './types';
6
+ import type { GuidelineConfig } from '../types';
7
7
  export declare const Guideline: (props: Omit<GuidelineConfig, 'key'>) => jsx.JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx } from '@emotion/react';
2
- import type { GuidelineConfig, GuidelineContainerRect } from './types';
2
+ import type { GuidelineConfig, GuidelineContainerRect } from '../types';
3
3
  type ContainerProps = {
4
4
  guidelines: GuidelineConfig[];
5
5
  height: number;
@@ -1,4 +1,4 @@
1
1
  import type { CSSProperties } from 'react';
2
- import { type Position } from './types';
2
+ import { type Position } from '../types';
3
3
  export declare const isNumber: (x: unknown) => x is number;
4
4
  export declare const getPositionStyles: (pos: Position) => CSSProperties;
@@ -1,2 +1,2 @@
1
- import type { GuidelineConfig } from './types';
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.16",
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": "^95.0.0",
26
+ "@atlaskit/editor-common": "^96.0.0",
27
27
  "@atlaskit/editor-plugin-width": "^1.3.0",
28
- "@atlaskit/editor-prosemirror": "6.0.0",
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.3.0",
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