@atlaskit/editor-plugin-annotation 8.0.25 → 8.0.27

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-annotation
2
2
 
3
+ ## 8.0.27
4
+
5
+ ### Patch Changes
6
+
7
+ - [`7b7c52dff5d7d`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/7b7c52dff5d7d) -
8
+ Fix eslint violations for type import syntax
9
+ - Updated dependencies
10
+
11
+ ## 8.0.26
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 8.0.25
4
18
 
5
19
  ### Patch Changes
@@ -28,7 +28,7 @@ var domRefFromPos = function domRefFromPos(view, position) {
28
28
  }
29
29
  return dom;
30
30
  };
31
- var allowAnnotation = exports.allowAnnotation = function allowAnnotation(editorView, options) {
31
+ var allowAnnotation = exports.allowAnnotation = function allowAnnotation(editorView, _options) {
32
32
  return function () {
33
33
  var _ref = _utils3.inlineCommentPluginKey.getState(editorView.state) || {},
34
34
  isDrafting = _ref.isDrafting,
@@ -185,7 +185,7 @@ var applyDraft = exports.applyDraft = function applyDraft(editorView, options) {
185
185
  };
186
186
  };
187
187
  };
188
- var getDraft = exports.getDraft = function getDraft(editorView, options) {
188
+ var getDraft = exports.getDraft = function getDraft(editorView, _options) {
189
189
  return function () {
190
190
  var _getRangeInlineNodeNa2;
191
191
  var _ref6 = _utils3.inlineCommentPluginKey.getState(editorView.state) || {},
@@ -297,7 +297,7 @@ var setIsAnnotationSelected = exports.setIsAnnotationSelected = function setIsAn
297
297
  };
298
298
  };
299
299
  };
300
- var setIsAnnotationHovered = exports.setIsAnnotationHovered = function setIsAnnotationHovered(editorView, options) {
300
+ var setIsAnnotationHovered = exports.setIsAnnotationHovered = function setIsAnnotationHovered(editorView, _options) {
301
301
  return function (id, isHovered) {
302
302
  var _hoveredAnnotations$f;
303
303
  var _ref8 = _utils3.inlineCommentPluginKey.getState(editorView.state) || {},
@@ -22,7 +22,7 @@ const domRefFromPos = (view, position) => {
22
22
  }
23
23
  return dom;
24
24
  };
25
- export const allowAnnotation = (editorView, options) => () => {
25
+ export const allowAnnotation = (editorView, _options) => () => {
26
26
  const {
27
27
  isDrafting,
28
28
  draftDecorationSet
@@ -176,7 +176,7 @@ export const applyDraft = (editorView, options) => id => {
176
176
  actionResult: undefined
177
177
  };
178
178
  };
179
- export const getDraft = (editorView, options) => () => {
179
+ export const getDraft = (editorView, _options) => () => {
180
180
  var _getRangeInlineNodeNa2;
181
181
  const {
182
182
  isDrafting,
@@ -284,7 +284,7 @@ export const setIsAnnotationSelected = (editorView, options) => (id, isSelected)
284
284
  isSelected
285
285
  };
286
286
  };
287
- export const setIsAnnotationHovered = (editorView, options) => (id, isHovered) => {
287
+ export const setIsAnnotationHovered = (editorView, _options) => (id, isHovered) => {
288
288
  var _hoveredAnnotations$f;
289
289
  const {
290
290
  annotations,
@@ -22,7 +22,7 @@ var domRefFromPos = function domRefFromPos(view, position) {
22
22
  }
23
23
  return dom;
24
24
  };
25
- export var allowAnnotation = function allowAnnotation(editorView, options) {
25
+ export var allowAnnotation = function allowAnnotation(editorView, _options) {
26
26
  return function () {
27
27
  var _ref = inlineCommentPluginKey.getState(editorView.state) || {},
28
28
  isDrafting = _ref.isDrafting,
@@ -179,7 +179,7 @@ export var applyDraft = function applyDraft(editorView, options) {
179
179
  };
180
180
  };
181
181
  };
182
- export var getDraft = function getDraft(editorView, options) {
182
+ export var getDraft = function getDraft(editorView, _options) {
183
183
  return function () {
184
184
  var _getRangeInlineNodeNa2;
185
185
  var _ref6 = inlineCommentPluginKey.getState(editorView.state) || {},
@@ -291,7 +291,7 @@ export var setIsAnnotationSelected = function setIsAnnotationSelected(editorView
291
291
  };
292
292
  };
293
293
  };
294
- export var setIsAnnotationHovered = function setIsAnnotationHovered(editorView, options) {
294
+ export var setIsAnnotationHovered = function setIsAnnotationHovered(editorView, _options) {
295
295
  return function (id, isHovered) {
296
296
  var _hoveredAnnotations$f;
297
297
  var _ref8 = inlineCommentPluginKey.getState(editorView.state) || {},
@@ -1,12 +1,12 @@
1
1
  import { type AnnotationId } from '@atlaskit/adf-schema';
2
2
  import type { ApplyDraftResult, ClearAnnotationResult, ClearDraftResult, GetDraftResult, HoverAnnotationResult, SelectAnnotationResult, StartDraftResult } from '@atlaskit/editor-common/annotation';
3
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { InlineCommentPluginOptions } from './types';
5
- export declare const allowAnnotation: (editorView: EditorView, options: InlineCommentPluginOptions) => () => boolean;
5
+ export declare const allowAnnotation: (editorView: EditorView, _options: InlineCommentPluginOptions) => () => boolean;
6
6
  export declare const startDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => () => StartDraftResult;
7
7
  export declare const clearDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => () => ClearDraftResult;
8
8
  export declare const applyDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId) => ApplyDraftResult;
9
- export declare const getDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => () => GetDraftResult;
9
+ export declare const getDraft: (editorView: EditorView, _options: InlineCommentPluginOptions) => () => GetDraftResult;
10
10
  export declare const setIsAnnotationSelected: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId, isSelected: boolean) => SelectAnnotationResult;
11
- export declare const setIsAnnotationHovered: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId, isHovered: boolean) => HoverAnnotationResult;
11
+ export declare const setIsAnnotationHovered: (editorView: EditorView, _options: InlineCommentPluginOptions) => (id: AnnotationId, isHovered: boolean) => HoverAnnotationResult;
12
12
  export declare const clearAnnotation: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId) => ClearAnnotationResult;
@@ -3,7 +3,7 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command, ExtractInjectionAPI, FloatingToolbarButton } from '@atlaskit/editor-common/types';
4
4
  import type { PopupPosition } from '@atlaskit/editor-common/ui';
5
5
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
6
- import { type SelectionBookmark, type EditorState } from '@atlaskit/editor-prosemirror/state';
6
+ import type { SelectionBookmark, EditorState } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
8
  import type { AnnotationPlugin } from '../annotationPluginType';
9
9
  import { type AnnotationProviders } from '../types';
@@ -1,8 +1,8 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type EditorState, type SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
2
+ import type { EditorState, SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { AnnotationPlugin } from '../../annotationPluginType';
4
4
  import type { AnnotationSelectionType } from '../../types';
5
- import { type AnnotationProviders } from '../../types';
5
+ import type { AnnotationProviders } from '../../types';
6
6
  export declare const useCommentButtonMount: ({ state, annotationProviders, api, annotationSelectionType, bookmark, }: {
7
7
  annotationProviders?: AnnotationProviders;
8
8
  annotationSelectionType: AnnotationSelectionType;
@@ -1,5 +1,5 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
2
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { AnnotationPlugin } from '../../annotationPluginType';
5
5
  import { AnnotationSelectionType, type AnnotationProviders } from '../../types';
@@ -1,5 +1,5 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
3
3
  import type { AnnotationPlugin } from '../annotationPluginType';
4
- import { type AnnotationProviders } from '../types';
4
+ import type { AnnotationProviders } from '../types';
5
5
  export declare const getToolbarComponents: (api?: ExtractInjectionAPI<AnnotationPlugin>, annotationProviders?: AnnotationProviders) => RegisterComponent[];
@@ -1,12 +1,12 @@
1
1
  import { type AnnotationId } from '@atlaskit/adf-schema';
2
2
  import type { ApplyDraftResult, ClearAnnotationResult, ClearDraftResult, GetDraftResult, HoverAnnotationResult, SelectAnnotationResult, StartDraftResult } from '@atlaskit/editor-common/annotation';
3
- import { type EditorView } from '@atlaskit/editor-prosemirror/view';
3
+ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { InlineCommentPluginOptions } from './types';
5
- export declare const allowAnnotation: (editorView: EditorView, options: InlineCommentPluginOptions) => () => boolean;
5
+ export declare const allowAnnotation: (editorView: EditorView, _options: InlineCommentPluginOptions) => () => boolean;
6
6
  export declare const startDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => () => StartDraftResult;
7
7
  export declare const clearDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => () => ClearDraftResult;
8
8
  export declare const applyDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId) => ApplyDraftResult;
9
- export declare const getDraft: (editorView: EditorView, options: InlineCommentPluginOptions) => () => GetDraftResult;
9
+ export declare const getDraft: (editorView: EditorView, _options: InlineCommentPluginOptions) => () => GetDraftResult;
10
10
  export declare const setIsAnnotationSelected: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId, isSelected: boolean) => SelectAnnotationResult;
11
- export declare const setIsAnnotationHovered: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId, isHovered: boolean) => HoverAnnotationResult;
11
+ export declare const setIsAnnotationHovered: (editorView: EditorView, _options: InlineCommentPluginOptions) => (id: AnnotationId, isHovered: boolean) => HoverAnnotationResult;
12
12
  export declare const clearAnnotation: (editorView: EditorView, options: InlineCommentPluginOptions) => (id: AnnotationId) => ClearAnnotationResult;
@@ -3,7 +3,7 @@ import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
3
3
  import type { Command, ExtractInjectionAPI, FloatingToolbarButton } from '@atlaskit/editor-common/types';
4
4
  import type { PopupPosition } from '@atlaskit/editor-common/ui';
5
5
  import type { NodeType } from '@atlaskit/editor-prosemirror/model';
6
- import { type SelectionBookmark, type EditorState } from '@atlaskit/editor-prosemirror/state';
6
+ import type { SelectionBookmark, EditorState } from '@atlaskit/editor-prosemirror/state';
7
7
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
8
  import type { AnnotationPlugin } from '../annotationPluginType';
9
9
  import { type AnnotationProviders } from '../types';
@@ -1,8 +1,8 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type EditorState, type SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
2
+ import type { EditorState, SelectionBookmark } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { AnnotationPlugin } from '../../annotationPluginType';
4
4
  import type { AnnotationSelectionType } from '../../types';
5
- import { type AnnotationProviders } from '../../types';
5
+ import type { AnnotationProviders } from '../../types';
6
6
  export declare const useCommentButtonMount: ({ state, annotationProviders, api, annotationSelectionType, bookmark, }: {
7
7
  annotationProviders?: AnnotationProviders;
8
8
  annotationSelectionType: AnnotationSelectionType;
@@ -1,5 +1,5 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
- import { type EditorState } from '@atlaskit/editor-prosemirror/state';
2
+ import type { EditorState } from '@atlaskit/editor-prosemirror/state';
3
3
  import type { EditorView } from '@atlaskit/editor-prosemirror/view';
4
4
  import type { AnnotationPlugin } from '../../annotationPluginType';
5
5
  import { AnnotationSelectionType, type AnnotationProviders } from '../../types';
@@ -1,5 +1,5 @@
1
1
  import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
2
2
  import type { RegisterComponent } from '@atlaskit/editor-toolbar-model';
3
3
  import type { AnnotationPlugin } from '../annotationPluginType';
4
- import { type AnnotationProviders } from '../types';
4
+ import type { AnnotationProviders } from '../types';
5
5
  export declare const getToolbarComponents: (api?: ExtractInjectionAPI<AnnotationPlugin>, annotationProviders?: AnnotationProviders) => RegisterComponent[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "8.0.25",
3
+ "version": "8.0.27",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -39,7 +39,7 @@
39
39
  "@atlaskit/editor-toolbar-model": "^0.4.0",
40
40
  "@atlaskit/icon": "^34.0.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
- "@atlaskit/tmp-editor-statsig": "^57.0.0",
42
+ "@atlaskit/tmp-editor-statsig": "^58.0.0",
43
43
  "@babel/runtime": "^7.0.0",
44
44
  "react-intl-next": "npm:react-intl@^5.18.1"
45
45
  },