@atlaskit/editor-plugin-decorations 1.3.9 → 1.3.11

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,19 @@
1
1
  # @atlaskit/editor-plugin-decorations
2
2
 
3
+ ## 1.3.11
4
+
5
+ ### Patch Changes
6
+
7
+ - [#169354](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/169354)
8
+ [`a083b7233a98e`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a083b7233a98e) -
9
+ ED-25809: refactors plugins to meet folder standards
10
+
11
+ ## 1.3.10
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.3.9
4
18
 
5
19
  ### Patch Changes
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.decorationsPlugin = void 0;
8
- var _pmPlugin = _interopRequireWildcard(require("./pm-plugin"));
8
+ var _main = _interopRequireWildcard(require("./pm-plugins/main"));
9
9
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
10
10
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
11
11
  /**
@@ -19,13 +19,13 @@ var decorationsPlugin = exports.decorationsPlugin = function decorationsPlugin()
19
19
  return [{
20
20
  name: 'decorationPlugin',
21
21
  plugin: function plugin() {
22
- return (0, _pmPlugin.default)();
22
+ return (0, _main.default)();
23
23
  }
24
24
  }];
25
25
  },
26
26
  actions: {
27
- hoverDecoration: _pmPlugin.hoverDecoration,
28
- removeDecoration: _pmPlugin.removeDecoration
27
+ hoverDecoration: _main.hoverDecoration,
28
+ removeDecoration: _main.removeDecoration
29
29
  },
30
30
  getSharedState: function getSharedState(editorState) {
31
31
  if (!editorState) {
@@ -33,7 +33,7 @@ var decorationsPlugin = exports.decorationsPlugin = function decorationsPlugin()
33
33
  decoration: undefined
34
34
  };
35
35
  }
36
- return _pmPlugin.decorationStateKey.getState(editorState);
36
+ return _main.decorationStateKey.getState(editorState);
37
37
  }
38
38
  };
39
39
  };
@@ -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, "decorationsPlugin", {
7
7
  enumerable: true,
8
8
  get: function get() {
9
- return _plugin.decorationsPlugin;
9
+ return _decorationsPlugin.decorationsPlugin;
10
10
  }
11
11
  });
12
- var _plugin = require("./plugin");
12
+ var _decorationsPlugin = require("./decorationsPlugin");
@@ -1,4 +1,5 @@
1
- import decorationPlugin, { decorationStateKey, hoverDecoration, removeDecoration } from './pm-plugin';
1
+ import decorationPlugin, { decorationStateKey, hoverDecoration, removeDecoration } from './pm-plugins/main';
2
+
2
3
  /**
3
4
  * Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
4
5
  * from `@atlaskit/editor-core`.
@@ -0,0 +1 @@
1
+ export {};
@@ -1 +1 @@
1
- export { decorationsPlugin } from './plugin';
1
+ export { decorationsPlugin } from './decorationsPlugin';
@@ -1,4 +1,5 @@
1
- import decorationPlugin, { decorationStateKey, hoverDecoration, removeDecoration } from './pm-plugin';
1
+ import decorationPlugin, { decorationStateKey, hoverDecoration, removeDecoration } from './pm-plugins/main';
2
+
2
3
  /**
3
4
  * Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
4
5
  * from `@atlaskit/editor-core`.
@@ -0,0 +1 @@
1
+ export {};
package/dist/esm/index.js CHANGED
@@ -1 +1 @@
1
- export { decorationsPlugin } from './plugin';
1
+ export { decorationsPlugin } from './decorationsPlugin';
@@ -0,0 +1,6 @@
1
+ import type { DecorationsPlugin } from './decorationsPluginType';
2
+ /**
3
+ * Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
4
+ * from `@atlaskit/editor-core`.
5
+ */
6
+ export declare const decorationsPlugin: DecorationsPlugin;
@@ -0,0 +1,9 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { DecorationState, HoverDecorationHandler, removeDecoration } from './pm-plugins/main';
3
+ export type DecorationsPlugin = NextEditorPlugin<'decorations', {
4
+ sharedState: DecorationState;
5
+ actions: {
6
+ hoverDecoration: HoverDecorationHandler;
7
+ removeDecoration: typeof removeDecoration;
8
+ };
9
+ }>;
@@ -1,3 +1,3 @@
1
- export { decorationsPlugin } from './plugin';
2
- export type { DecorationsPlugin } from './plugin';
3
- export type { HoverDecorationHandler, DecorationState } from './pm-plugin';
1
+ export { decorationsPlugin } from './decorationsPlugin';
2
+ export type { DecorationsPlugin } from './decorationsPluginType';
3
+ export type { HoverDecorationHandler, DecorationState } from './pm-plugins/main';
@@ -0,0 +1,6 @@
1
+ import type { DecorationsPlugin } from './decorationsPluginType';
2
+ /**
3
+ * Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
4
+ * from `@atlaskit/editor-core`.
5
+ */
6
+ export declare const decorationsPlugin: DecorationsPlugin;
@@ -0,0 +1,9 @@
1
+ import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
+ import type { DecorationState, HoverDecorationHandler, removeDecoration } from './pm-plugins/main';
3
+ export type DecorationsPlugin = NextEditorPlugin<'decorations', {
4
+ sharedState: DecorationState;
5
+ actions: {
6
+ hoverDecoration: HoverDecorationHandler;
7
+ removeDecoration: typeof removeDecoration;
8
+ };
9
+ }>;
@@ -1,3 +1,3 @@
1
- export { decorationsPlugin } from './plugin';
2
- export type { DecorationsPlugin } from './plugin';
3
- export type { HoverDecorationHandler, DecorationState } from './pm-plugin';
1
+ export { decorationsPlugin } from './decorationsPlugin';
2
+ export type { DecorationsPlugin } from './decorationsPluginType';
3
+ export type { HoverDecorationHandler, DecorationState } from './pm-plugins/main';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-decorations",
3
- "version": "1.3.9",
3
+ "version": "1.3.11",
4
4
  "description": "Decorations plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -23,7 +23,7 @@
23
23
  ".": "./src/index.ts"
24
24
  },
25
25
  "dependencies": {
26
- "@atlaskit/editor-common": "^94.2.0",
26
+ "@atlaskit/editor-common": "^95.7.0",
27
27
  "@atlaskit/editor-prosemirror": "6.0.0",
28
28
  "@babel/runtime": "^7.0.0"
29
29
  },
@@ -39,6 +39,9 @@
39
39
  },
40
40
  "techstack": {
41
41
  "@atlassian/frontend": {
42
+ "code-structure": [
43
+ "editor-plugin"
44
+ ],
42
45
  "import-structure": [
43
46
  "atlassian-conventions"
44
47
  ],
@@ -1,15 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { DecorationState, HoverDecorationHandler } from './pm-plugin';
3
- import { removeDecoration } from './pm-plugin';
4
- export type DecorationsPlugin = NextEditorPlugin<'decorations', {
5
- sharedState: DecorationState;
6
- actions: {
7
- hoverDecoration: HoverDecorationHandler;
8
- removeDecoration: typeof removeDecoration;
9
- };
10
- }>;
11
- /**
12
- * Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
13
- * from `@atlaskit/editor-core`.
14
- */
15
- export declare const decorationsPlugin: DecorationsPlugin;
@@ -1,15 +0,0 @@
1
- import type { NextEditorPlugin } from '@atlaskit/editor-common/types';
2
- import type { DecorationState, HoverDecorationHandler } from './pm-plugin';
3
- import { removeDecoration } from './pm-plugin';
4
- export type DecorationsPlugin = NextEditorPlugin<'decorations', {
5
- sharedState: DecorationState;
6
- actions: {
7
- hoverDecoration: HoverDecorationHandler;
8
- removeDecoration: typeof removeDecoration;
9
- };
10
- }>;
11
- /**
12
- * Decorations plugin to be added to an `EditorPresetBuilder` and used with `ComposableEditor`
13
- * from `@atlaskit/editor-core`.
14
- */
15
- export declare const decorationsPlugin: DecorationsPlugin;
File without changes
File without changes