@atlaskit/editor-plugin-decorations 11.0.13 → 11.0.15

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,17 @@
1
1
  # @atlaskit/editor-plugin-decorations
2
2
 
3
+ ## 11.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
9
+ ## 11.0.14
10
+
11
+ ### Patch Changes
12
+
13
+ - Updated dependencies
14
+
3
15
  ## 11.0.13
4
16
 
5
17
  ### Patch Changes
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/decorationsPlugin.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/decorationsPlugin.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/decorationsPlugin.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/decorationsPlugin.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/decorationsPlugin.d.ts"
15
8
  }
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/decorationsPluginType.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/decorationsPluginType.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/decorationsPluginType.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/decorationsPluginType.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/decorationsPluginType.d.ts"
15
8
  }
package/main/package.json CHANGED
@@ -4,12 +4,5 @@
4
4
  "module": "../dist/esm/entry-points/main.js",
5
5
  "module:es2019": "../dist/es2019/entry-points/main.js",
6
6
  "sideEffects": false,
7
- "types": "../dist/types/entry-points/main.d.ts",
8
- "typesVersions": {
9
- ">=4.5 <5.9": {
10
- "*": [
11
- "../dist/types-ts4.5/entry-points/main.d.ts"
12
- ]
13
- }
14
- }
7
+ "types": "../dist/types/entry-points/main.d.ts"
15
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-decorations",
3
- "version": "11.0.13",
3
+ "version": "11.0.15",
4
4
  "description": "Decorations plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -22,7 +22,7 @@
22
22
  "@atlaskit/editor-prosemirror": "^7.3.0",
23
23
  "@atlaskit/editor-tables": "^2.10.0",
24
24
  "@atlaskit/platform-feature-flags": "^1.1.0",
25
- "@atlaskit/tmp-editor-statsig": "^101.0.0",
25
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
26
26
  "@babel/runtime": "^7.0.0"
27
27
  },
28
28
  "peerDependencies": {
@@ -1,6 +0,0 @@
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;
@@ -1,20 +0,0 @@
1
- import type { NextEditorPlugin, EditorCommand } from '@atlaskit/editor-common/types';
2
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- import type { DecorationState, HoverDecorationHandler, removeDecoration } from './pm-plugins/main';
4
- export type HoverDecorationProps = {
5
- add: boolean;
6
- className?: string;
7
- selection?: Selection;
8
- };
9
- export type HoverDecorationCommand = ({ add, className, selection, }: HoverDecorationProps) => EditorCommand;
10
- export type DecorationsPlugin = NextEditorPlugin<'decorations', {
11
- actions: {
12
- hoverDecoration: HoverDecorationHandler;
13
- removeDecoration: typeof removeDecoration;
14
- };
15
- commands: {
16
- hoverDecoration?: HoverDecorationCommand;
17
- removeDecoration?: () => EditorCommand;
18
- };
19
- sharedState: DecorationState;
20
- }>;
@@ -1 +0,0 @@
1
- export { decorationsPlugin } from '../decorationsPlugin';
@@ -1 +0,0 @@
1
- export type { DecorationsPlugin, HoverDecorationProps, HoverDecorationCommand, } from '../decorationsPluginType';
@@ -1 +0,0 @@
1
- export type { HoverDecorationHandler, DecorationState } from '../pm-plugins/main';
@@ -1,3 +0,0 @@
1
- export { decorationsPlugin } from './decorationsPlugin';
2
- export type { DecorationsPlugin, HoverDecorationProps, HoverDecorationCommand, } from './decorationsPluginType';
3
- export type { HoverDecorationHandler, DecorationState } from './pm-plugins/main';
@@ -1,4 +0,0 @@
1
- import type { EditorCommand } from '@atlaskit/editor-common/types';
2
- import type { HoverDecorationCommand } from '../decorationsPluginType';
3
- export declare const hoverDecorationCommand: HoverDecorationCommand;
4
- export declare const removeDecorationCommand: () => EditorCommand;
@@ -1,20 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { Command } from '@atlaskit/editor-common/types';
3
- import type { NodeType } from '@atlaskit/editor-prosemirror/model';
4
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import { Decoration, DecorationSet } from '@atlaskit/editor-prosemirror/view';
6
- export declare const decorationStateKey: PluginKey;
7
- export declare enum ACTIONS {
8
- DECORATION_ADD = 0,
9
- DECORATION_REMOVE = 1
10
- }
11
- export declare const removeDecoration: Command;
12
- export declare const hoverDecoration: (nodeType: NodeType | Array<NodeType>, add: boolean, className?: string) => Command;
13
- export type DecorationState = {
14
- decoration?: Decoration | DecorationSet;
15
- hasDangerDecorations?: boolean;
16
- };
17
- type HoverDecorationHandler = typeof hoverDecoration;
18
- export type { HoverDecorationHandler };
19
- declare const _default: () => SafePlugin<DecorationState>;
20
- export default _default;