@atlaskit/editor-plugin-selection-marker 11.0.14 → 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,11 @@
1
1
  # @atlaskit/editor-plugin-selection-marker
2
2
 
3
+ ## 11.0.15
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 11.0.14
4
10
 
5
11
  ### 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": "11.0.15",
4
4
  "description": "Selection marker plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/link": "^3.4.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/theme": "^25.0.0",
41
- "@atlaskit/tmp-editor-statsig": "^102.0.0",
41
+ "@atlaskit/tmp-editor-statsig": "^103.0.0",
42
42
  "@atlaskit/tokens": "^13.4.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "@emotion/react": "^11.7.1",
@@ -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 {};