@atlaskit/editor-plugin-annotation 1.4.0 → 1.4.1

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-annotation
2
2
 
3
+ ## 1.4.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#83116](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/83116) [`8d4e99057fe0`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/8d4e99057fe0) - Upgrade Typescript from `4.9.5` to `5.4.2`
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  ### Minor Changes
@@ -50,6 +50,8 @@ var buildToolbar = exports.buildToolbar = function buildToolbar(editorAnalyticsA
50
50
  eventType: _analytics.EVENT_TYPE.UI,
51
51
  attributes: {
52
52
  source: 'highlightActionsMenu',
53
+ // @ts-expect-error - Object literal may only specify known properties, and 'pageMode' does not exist in type
54
+ // This error was introduced after upgrading to TypeScript 5
53
55
  pageMode: 'edit'
54
56
  }
55
57
  });
@@ -41,6 +41,8 @@ export const buildToolbar = editorAnalyticsAPI => (state, intl, isToolbarAbove =
41
41
  eventType: EVENT_TYPE.UI,
42
42
  attributes: {
43
43
  source: 'highlightActionsMenu',
44
+ // @ts-expect-error - Object literal may only specify known properties, and 'pageMode' does not exist in type
45
+ // This error was introduced after upgrading to TypeScript 5
44
46
  pageMode: 'edit'
45
47
  }
46
48
  });
@@ -43,6 +43,8 @@ export var buildToolbar = function buildToolbar(editorAnalyticsAPI) {
43
43
  eventType: EVENT_TYPE.UI,
44
44
  attributes: {
45
45
  source: 'highlightActionsMenu',
46
+ // @ts-expect-error - Object literal may only specify known properties, and 'pageMode' does not exist in type
47
+ // This error was introduced after upgrading to TypeScript 5
46
48
  pageMode: 'edit'
47
49
  }
48
50
  });
@@ -1,2 +1,2 @@
1
1
  import type { InlineCommentPluginState } from './types';
2
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: InlineCommentPluginState | ((state: import("prosemirror-state").EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
2
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: InlineCommentPluginState | ((state: import("prosemirror-state").EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
@@ -112,8 +112,8 @@ export interface AnnotationProviders {
112
112
  inlineComment: InlineCommentAnnotationProvider;
113
113
  }
114
114
  export declare enum AnnotationSelectionType {
115
- INVALID = "invalid",
116
- DISABLED = "disabled",
115
+ INVALID = "invalid",// Annotation should not be created, toolbar should not be shown
116
+ DISABLED = "disabled",// Annotation should not be created, toolbar should be shown, but disabled
117
117
  VALID = "valid"
118
118
  }
119
119
  export declare const AnnotationTestIds: {
@@ -1,2 +1,2 @@
1
1
  import type { InlineCommentPluginState } from './types';
2
- export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch<any>, initialState: InlineCommentPluginState | ((state: import("prosemirror-state").EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
2
+ export declare const createPluginState: (dispatch: import("@atlaskit/editor-common/event-dispatcher").Dispatch, initialState: InlineCommentPluginState | ((state: import("prosemirror-state").EditorState) => InlineCommentPluginState)) => import("prosemirror-state").SafeStateField<InlineCommentPluginState>, createCommand: <A = import("./types").InlineCommentAction>(action: A | ((state: Readonly<import("prosemirror-state").EditorState>) => false | A), transform?: ((tr: import("prosemirror-state").Transaction, state: import("prosemirror-state").EditorState) => import("prosemirror-state").Transaction) | undefined) => import("@atlaskit/editor-common/types").Command;
@@ -112,8 +112,8 @@ export interface AnnotationProviders {
112
112
  inlineComment: InlineCommentAnnotationProvider;
113
113
  }
114
114
  export declare enum AnnotationSelectionType {
115
- INVALID = "invalid",
116
- DISABLED = "disabled",
115
+ INVALID = "invalid",// Annotation should not be created, toolbar should not be shown
116
+ DISABLED = "disabled",// Annotation should not be created, toolbar should be shown, but disabled
117
117
  VALID = "valid"
118
118
  }
119
119
  export declare const AnnotationTestIds: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-annotation",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "Annotation plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -33,7 +33,7 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/adf-schema": "^35.6.0",
36
- "@atlaskit/editor-common": "^78.14.0",
36
+ "@atlaskit/editor-common": "^78.17.0",
37
37
  "@atlaskit/editor-plugin-analytics": "^1.0.0",
38
38
  "@atlaskit/editor-plugin-editor-viewmode": "^1.0.0",
39
39
  "@atlaskit/editor-plugin-feature-flags": "^1.0.0",
@@ -54,7 +54,7 @@
54
54
  "@atlassian/feature-flags-test-utils": "^0.2.0",
55
55
  "@testing-library/react": "^12.1.5",
56
56
  "react-dom": "^16.8.0",
57
- "typescript": "~4.9.5",
57
+ "typescript": "~5.4.2",
58
58
  "wait-for-expect": "^1.2.0"
59
59
  },
60
60
  "techstack": {