@atlaskit/editor-plugin-selection-marker 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-selection-marker
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-selection-marker",
3
- "version": "11.0.14",
3
+ "version": "12.0.0",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -15,37 +15,29 @@
15
15
  "module": "dist/esm/index.js",
16
16
  "module:es2019": "dist/es2019/index.js",
17
17
  "types": "dist/types/index.d.ts",
18
- "typesVersions": {
19
- ">=4.5 <4.9": {
20
- "*": [
21
- "dist/types-ts4.5/*",
22
- "dist/types-ts4.5/index.d.ts"
23
- ]
24
- }
25
- },
26
18
  "sideEffects": [
27
19
  "*.compiled.css"
28
20
  ],
29
21
  "atlaskit:src": "src/index.ts",
30
22
  "dependencies": {
31
- "@atlaskit/editor-plugin-decorations": "^11.0.0",
32
- "@atlaskit/editor-plugin-editor-disabled": "^11.0.0",
33
- "@atlaskit/editor-plugin-focus": "^10.0.0",
34
- "@atlaskit/editor-plugin-toolbar": "^8.0.0",
35
- "@atlaskit/editor-plugin-type-ahead": "^11.3.0",
36
- "@atlaskit/editor-plugin-user-intent": "^9.1.0",
37
- "@atlaskit/editor-prosemirror": "^7.3.0",
38
- "@atlaskit/link": "^3.4.0",
39
- "@atlaskit/platform-feature-flags": "^1.1.0",
40
- "@atlaskit/theme": "^25.0.0",
41
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
42
- "@atlaskit/tokens": "^13.4.0",
23
+ "@atlaskit/editor-plugin-decorations": "^12.0.0",
24
+ "@atlaskit/editor-plugin-editor-disabled": "^12.0.0",
25
+ "@atlaskit/editor-plugin-focus": "^11.0.0",
26
+ "@atlaskit/editor-plugin-toolbar": "^9.0.0",
27
+ "@atlaskit/editor-plugin-type-ahead": "^12.0.0",
28
+ "@atlaskit/editor-plugin-user-intent": "^10.0.0",
29
+ "@atlaskit/editor-prosemirror": "^8.0.0",
30
+ "@atlaskit/link": "^4.0.0",
31
+ "@atlaskit/platform-feature-flags": "^2.0.0",
32
+ "@atlaskit/theme": "^26.0.0",
33
+ "@atlaskit/tmp-editor-statsig": "^104.0.0",
34
+ "@atlaskit/tokens": "^14.0.0",
43
35
  "@babel/runtime": "^7.0.0",
44
36
  "@emotion/react": "^11.7.1",
45
37
  "lodash": "^4.17.21"
46
38
  },
47
39
  "peerDependencies": {
48
- "@atlaskit/editor-common": "^115.15.0",
40
+ "@atlaskit/editor-common": "^116.0.0",
49
41
  "react": "^18.2.0",
50
42
  "react-dom": "^18.2.0"
51
43
  },
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/selection-marker-plugin.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/selection-marker-plugin.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/selection-marker-plugin.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/selection-marker-plugin-type.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/selection-marker-plugin-type.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/selection-marker-plugin-type.d.ts"
17
10
  }
@@ -1 +0,0 @@
1
- export type { SelectionMarkerPlugin, SelectionMarkerPluginConfiguration, SelectionMarkerPluginOptions, ReleaseHiddenDecoration, } from '../selectionMarkerPluginType';
@@ -1 +0,0 @@
1
- export { selectionMarkerPlugin } from '../selectionMarkerPlugin';
@@ -1,2 +0,0 @@
1
- export { selectionMarkerPlugin } from './selectionMarkerPlugin';
2
- export type { SelectionMarkerPlugin, SelectionMarkerPluginConfiguration, SelectionMarkerPluginOptions, ReleaseHiddenDecoration, } from './selectionMarkerPluginType';
@@ -1,24 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { EditorState, ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
4
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import { DecorationSet } from '@atlaskit/editor-prosemirror/view';
7
- import type { SelectionMarkerPlugin } from '../selectionMarkerPluginType';
8
- export interface PluginState {
9
- decorations: DecorationSet;
10
- decorationType: DecorationType;
11
- forceHide: boolean;
12
- shouldHideDecorations: boolean;
13
- }
14
- export declare const key: PluginKey<PluginState>;
15
- type DecorationType = 'blur' | 'highlight' | 'none';
16
- export declare const applyNextPluginState: (tr: ReadonlyTransaction, currentState: PluginState, oldEditorState: EditorState) => PluginState | {
17
- decorations: DecorationSet;
18
- decorationType: "none" | "blur";
19
- forceHide: any;
20
- shouldHideDecorations: any;
21
- };
22
- export declare const createPlugin: (api: ExtractInjectionAPI<SelectionMarkerPlugin> | undefined) => SafePlugin<PluginState>;
23
- export declare function dispatchShouldHideDecorations(editorView: EditorView, shouldHideDecorations: boolean): void;
24
- export {};
@@ -1,2 +0,0 @@
1
- import type { SelectionMarkerPlugin } from './selectionMarkerPluginType';
2
- export declare const selectionMarkerPlugin: SelectionMarkerPlugin;
@@ -1,39 +0,0 @@
1
- import type { NextEditorPlugin, OptionalPlugin } from '@atlaskit/editor-common/types';
2
- import type { DecorationsPlugin } from '@atlaskit/editor-plugin-decorations';
3
- import type { EditorDisabledPlugin } from '@atlaskit/editor-plugin-editor-disabled';
4
- import type { FocusPlugin } from '@atlaskit/editor-plugin-focus';
5
- import type { ToolbarPlugin } from '@atlaskit/editor-plugin-toolbar';
6
- import type { TypeAheadPlugin } from '@atlaskit/editor-plugin-type-ahead';
7
- import type { UserIntentPlugin } from '@atlaskit/editor-plugin-user-intent';
8
- export type ReleaseHiddenDecoration = () => boolean | undefined;
9
- type SetCleanup = (cb: ReleaseHiddenDecoration | undefined) => void;
10
- type CancelQueue = (() => void) | undefined;
11
- export type SelectionMarkerPluginOptions = {
12
- hideCursorOnInit?: boolean;
13
- };
14
- /**
15
- * @private
16
- * @deprecated Use {@link SelectionMarkerPluginOptions} instead.
17
- * @see https://product-fabric.atlassian.net/browse/ED-27496
18
- */
19
- export type SelectionMarkerPluginConfiguration = SelectionMarkerPluginOptions;
20
- export type SelectionMarkerPlugin = NextEditorPlugin<'selectionMarker', {
21
- actions: {
22
- hideDecoration: () => ReleaseHiddenDecoration | undefined;
23
- queueHideDecoration: (setCleanup: SetCleanup) => CancelQueue;
24
- };
25
- dependencies: [
26
- FocusPlugin,
27
- OptionalPlugin<TypeAheadPlugin>,
28
- OptionalPlugin<EditorDisabledPlugin>,
29
- OptionalPlugin<ToolbarPlugin>,
30
- OptionalPlugin<DecorationsPlugin>,
31
- OptionalPlugin<UserIntentPlugin>
32
- ];
33
- pluginConfiguration?: SelectionMarkerPluginOptions;
34
- sharedState: {
35
- isForcedHidden: boolean;
36
- isMarkerActive: boolean;
37
- } | undefined;
38
- }>;
39
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import { jsx } from '@emotion/react';
6
- export declare const GlobalStylesWrapper: () => jsx.JSX.Element;
@@ -1,4 +0,0 @@
1
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
3
- import { Decoration } from '@atlaskit/editor-prosemirror/view';
4
- export declare const selectionDecoration: (doc: PMNode, selection: Selection, isHighlight: boolean) => Decoration[];
@@ -1,10 +0,0 @@
1
- /**
2
- * @jsxRuntime classic
3
- * @jsx jsx
4
- */
5
- import type { ResolvedPos } from '@atlaskit/editor-prosemirror/model';
6
- import type { Selection } from '@atlaskit/editor-prosemirror/state';
7
- import { Decoration } from '@atlaskit/editor-prosemirror/view';
8
- type SelectionType = 'anchor' | 'head';
9
- export declare const createWidgetDecoration: (resolvedPos: ResolvedPos, type: SelectionType, selection: Selection, isHighlight: boolean) => Decoration[];
10
- export {};