@atlaskit/editor-plugin-decorations 11.0.14 → 12.0.0

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,37 @@
1
1
  # @atlaskit/editor-plugin-decorations
2
2
 
3
+ ## 12.0.0
4
+
5
+ ### Major Changes
6
+
7
+ - [`f2dc9097319f0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/f2dc9097319f0) - ###
8
+ Dropped support for _legacy_ Typescript 4 types. **Typescript 5 is now the new minimum**.
9
+
10
+ Removes the `typesVersions` property and `dist/types-ts4.5` directory from the dist.
11
+
12
+ Types are now exclusively via the `"types": "dist/types/index.d.ts"` property.
13
+
14
+ ```diff
15
+ - "typesVersions": {
16
+ - ">=4.5 <4.9": {
17
+ - "*": [
18
+ - "dist/types-ts4.5/*",
19
+ - "dist/types-ts4.5/index.d.ts"
20
+ - ]
21
+ - }
22
+ - },
23
+ ```
24
+
25
+ ### Patch Changes
26
+
27
+ - Updated dependencies
28
+
29
+ ## 11.0.15
30
+
31
+ ### Patch Changes
32
+
33
+ - Updated dependencies
34
+
3
35
  ## 11.0.14
4
36
 
5
37
  ### 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.14",
3
+ "version": "12.0.0",
4
4
  "description": "Decorations plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -19,14 +19,14 @@
19
19
  "sideEffects": false,
20
20
  "atlaskit:src": "src/index.ts",
21
21
  "dependencies": {
22
- "@atlaskit/editor-prosemirror": "^7.3.0",
23
- "@atlaskit/editor-tables": "^2.10.0",
24
- "@atlaskit/platform-feature-flags": "^1.1.0",
25
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
22
+ "@atlaskit/editor-prosemirror": "^8.0.0",
23
+ "@atlaskit/editor-tables": "^3.0.0",
24
+ "@atlaskit/platform-feature-flags": "^2.0.0",
25
+ "@atlaskit/tmp-editor-statsig": "^104.0.0",
26
26
  "@babel/runtime": "^7.0.0"
27
27
  },
28
28
  "peerDependencies": {
29
- "@atlaskit/editor-common": "^115.15.0",
29
+ "@atlaskit/editor-common": "^116.0.0",
30
30
  "react": "^18.2.0",
31
31
  "react-dom": "^18.2.0"
32
32
  },
@@ -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;