@atlaskit/editor-plugin-status 4.1.7 → 4.1.9

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-status
2
2
 
3
+ ## 4.1.9
4
+
5
+ ### Patch Changes
6
+
7
+ - [`265c1bf0cefa4`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/265c1bf0cefa4) -
8
+ Sorted type and interface props to improve Atlaskit docs
9
+ - Updated dependencies
10
+
11
+ ## 4.1.8
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 4.1.7
4
18
 
5
19
  ### Patch Changes
@@ -9,8 +9,8 @@ type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
9
9
  };
10
10
  sharedState: {
11
11
  annotations: Record<string, boolean>;
12
- isVisible: boolean;
13
12
  bookmark: boolean;
13
+ isVisible: boolean;
14
14
  mouseData: {
15
15
  isSelecting: boolean;
16
16
  };
@@ -31,14 +31,14 @@ export type StatusPluginActions = {
31
31
  updateStatus: UpdateStatus;
32
32
  };
33
33
  export type StatusPluginCommands = {
34
- removeStatus: typeof removeStatus;
35
34
  insertStatus: ReturnType<typeof insertStatus>;
35
+ removeStatus: typeof removeStatus;
36
36
  };
37
37
  export type StatusPlugin = NextEditorPlugin<'status', {
38
- dependencies: StatusPluginDependencies;
39
- pluginConfiguration: StatusPluginOptions | undefined;
40
38
  actions: StatusPluginActions;
41
39
  commands: StatusPluginCommands;
40
+ dependencies: StatusPluginDependencies;
41
+ pluginConfiguration: StatusPluginOptions | undefined;
42
42
  sharedState: StatusState | undefined;
43
43
  }>;
44
44
  export {};
@@ -2,17 +2,17 @@ import type { Color as ColorType } from '@atlaskit/status/element';
2
2
  import type { closingMethods } from '../ui/statusPicker';
3
3
  export type StatusType = {
4
4
  color: ColorType;
5
- text: string;
6
5
  localId?: string;
6
+ text: string;
7
7
  };
8
8
  export type StatusState = {
9
+ focusStatusInput?: boolean;
9
10
  isNew: boolean;
10
11
  showStatusPickerAt: number | null;
11
- focusStatusInput?: boolean;
12
12
  };
13
13
  export interface StatusPluginOptions {
14
- menuDisabled: boolean;
15
14
  allowZeroWidthSpaceAfter?: boolean;
15
+ menuDisabled: boolean;
16
16
  }
17
17
  export type ClosingPayload = {
18
18
  closingMethod: closingMethods;
@@ -5,11 +5,11 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { StatusPlugin } from '../statusPluginType';
6
6
  interface ContentComponentProps {
7
7
  api: ExtractInjectionAPI<StatusPlugin> | undefined;
8
- popupsMountPoint?: HTMLElement;
8
+ domAtPos: DomAtPos;
9
+ editorView: EditorView;
9
10
  popupsBoundariesElement?: HTMLElement;
11
+ popupsMountPoint?: HTMLElement;
10
12
  popupsScrollableElement?: HTMLElement;
11
- editorView: EditorView;
12
- domAtPos: DomAtPos;
13
13
  }
14
14
  export declare function ContentComponent({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, domAtPos, }: ContentComponentProps): React.JSX.Element | null;
15
15
  export {};
@@ -14,28 +14,28 @@ export declare enum closingMethods {
14
14
  ArrowRight = "arrowRight"
15
15
  }
16
16
  export interface Props {
17
- target: HTMLElement | null;
17
+ boundariesElement?: HTMLElement;
18
18
  closeStatusPicker: (closingPayload?: ClosingPayload) => void;
19
- onSelect: (status: StatusType) => void;
20
- onTextChanged: (status: StatusType, isNew: boolean) => void;
21
- onEnter: (status: StatusType) => void;
22
- isNew?: boolean;
23
- focusStatusInput?: boolean;
24
- defaultText?: string;
19
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
25
20
  defaultColor?: Color;
26
21
  defaultLocalId?: string;
27
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
28
- mountTo?: HTMLElement;
29
- boundariesElement?: HTMLElement;
30
- scrollableElement?: HTMLElement;
22
+ defaultText?: string;
31
23
  editorView: EditorView;
24
+ focusStatusInput?: boolean;
32
25
  intl: WrappedComponentProps['intl'];
26
+ isNew?: boolean;
27
+ mountTo?: HTMLElement;
28
+ onEnter: (status: StatusType) => void;
29
+ onSelect: (status: StatusType) => void;
30
+ onTextChanged: (status: StatusType, isNew: boolean) => void;
31
+ scrollableElement?: HTMLElement;
32
+ target: HTMLElement | null;
33
33
  }
34
34
  export interface State {
35
35
  color: Color;
36
- text: string;
37
- localId?: string;
38
36
  isNew?: boolean;
37
+ localId?: string;
38
+ text: string;
39
39
  }
40
40
  export declare const StatusPickerWithoutAnalytcs: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
41
41
  WrappedComponent: React.ComponentType<Props>;
@@ -9,8 +9,8 @@ type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
9
9
  };
10
10
  sharedState: {
11
11
  annotations: Record<string, boolean>;
12
- isVisible: boolean;
13
12
  bookmark: boolean;
13
+ isVisible: boolean;
14
14
  mouseData: {
15
15
  isSelecting: boolean;
16
16
  };
@@ -31,14 +31,14 @@ export type StatusPluginActions = {
31
31
  updateStatus: UpdateStatus;
32
32
  };
33
33
  export type StatusPluginCommands = {
34
- removeStatus: typeof removeStatus;
35
34
  insertStatus: ReturnType<typeof insertStatus>;
35
+ removeStatus: typeof removeStatus;
36
36
  };
37
37
  export type StatusPlugin = NextEditorPlugin<'status', {
38
- dependencies: StatusPluginDependencies;
39
- pluginConfiguration: StatusPluginOptions | undefined;
40
38
  actions: StatusPluginActions;
41
39
  commands: StatusPluginCommands;
40
+ dependencies: StatusPluginDependencies;
41
+ pluginConfiguration: StatusPluginOptions | undefined;
42
42
  sharedState: StatusState | undefined;
43
43
  }>;
44
44
  export {};
@@ -2,17 +2,17 @@ import type { Color as ColorType } from '@atlaskit/status/element';
2
2
  import type { closingMethods } from '../ui/statusPicker';
3
3
  export type StatusType = {
4
4
  color: ColorType;
5
- text: string;
6
5
  localId?: string;
6
+ text: string;
7
7
  };
8
8
  export type StatusState = {
9
+ focusStatusInput?: boolean;
9
10
  isNew: boolean;
10
11
  showStatusPickerAt: number | null;
11
- focusStatusInput?: boolean;
12
12
  };
13
13
  export interface StatusPluginOptions {
14
- menuDisabled: boolean;
15
14
  allowZeroWidthSpaceAfter?: boolean;
15
+ menuDisabled: boolean;
16
16
  }
17
17
  export type ClosingPayload = {
18
18
  closingMethod: closingMethods;
@@ -5,11 +5,11 @@ import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
5
  import type { StatusPlugin } from '../statusPluginType';
6
6
  interface ContentComponentProps {
7
7
  api: ExtractInjectionAPI<StatusPlugin> | undefined;
8
- popupsMountPoint?: HTMLElement;
8
+ domAtPos: DomAtPos;
9
+ editorView: EditorView;
9
10
  popupsBoundariesElement?: HTMLElement;
11
+ popupsMountPoint?: HTMLElement;
10
12
  popupsScrollableElement?: HTMLElement;
11
- editorView: EditorView;
12
- domAtPos: DomAtPos;
13
13
  }
14
14
  export declare function ContentComponent({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, domAtPos, }: ContentComponentProps): React.JSX.Element | null;
15
15
  export {};
@@ -14,28 +14,28 @@ export declare enum closingMethods {
14
14
  ArrowRight = "arrowRight"
15
15
  }
16
16
  export interface Props {
17
- target: HTMLElement | null;
17
+ boundariesElement?: HTMLElement;
18
18
  closeStatusPicker: (closingPayload?: ClosingPayload) => void;
19
- onSelect: (status: StatusType) => void;
20
- onTextChanged: (status: StatusType, isNew: boolean) => void;
21
- onEnter: (status: StatusType) => void;
22
- isNew?: boolean;
23
- focusStatusInput?: boolean;
24
- defaultText?: string;
19
+ createAnalyticsEvent?: CreateUIAnalyticsEvent;
25
20
  defaultColor?: Color;
26
21
  defaultLocalId?: string;
27
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
28
- mountTo?: HTMLElement;
29
- boundariesElement?: HTMLElement;
30
- scrollableElement?: HTMLElement;
22
+ defaultText?: string;
31
23
  editorView: EditorView;
24
+ focusStatusInput?: boolean;
32
25
  intl: WrappedComponentProps['intl'];
26
+ isNew?: boolean;
27
+ mountTo?: HTMLElement;
28
+ onEnter: (status: StatusType) => void;
29
+ onSelect: (status: StatusType) => void;
30
+ onTextChanged: (status: StatusType, isNew: boolean) => void;
31
+ scrollableElement?: HTMLElement;
32
+ target: HTMLElement | null;
33
33
  }
34
34
  export interface State {
35
35
  color: Color;
36
- text: string;
37
- localId?: string;
38
36
  isNew?: boolean;
37
+ localId?: string;
38
+ text: string;
39
39
  }
40
40
  export declare const StatusPickerWithoutAnalytcs: React.FC<import("react-intl-next").WithIntlProps<Props>> & {
41
41
  WrappedComponent: React.ComponentType<Props>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-status",
3
- "version": "4.1.7",
3
+ "version": "4.1.9",
4
4
  "description": "Status plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,18 +37,18 @@
37
37
  "@atlaskit/editor-plugin-analytics": "^3.0.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
- "@atlaskit/icon": "^27.12.0",
40
+ "@atlaskit/icon": "^28.0.0",
41
41
  "@atlaskit/platform-feature-flags": "^1.1.0",
42
42
  "@atlaskit/status": "^3.0.0",
43
43
  "@atlaskit/theme": "^19.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^11.3.0",
44
+ "@atlaskit/tmp-editor-statsig": "^11.5.0",
45
45
  "@atlaskit/tokens": "^6.0.0",
46
46
  "@atlaskit/visually-hidden": "^3.0.0",
47
47
  "@babel/runtime": "^7.0.0",
48
48
  "@emotion/react": "^11.7.1"
49
49
  },
50
50
  "peerDependencies": {
51
- "@atlaskit/editor-common": "^107.26.0",
51
+ "@atlaskit/editor-common": "^107.28.0",
52
52
  "react": "^18.2.0",
53
53
  "react-dom": "^18.2.0",
54
54
  "react-intl-next": "npm:react-intl@^5.18.1"
@@ -56,7 +56,6 @@
56
56
  "devDependencies": {
57
57
  "@af/visual-regression": "workspace:^",
58
58
  "@atlaskit/ssr": "workspace:^",
59
- "@atlaskit/visual-regression": "workspace:^",
60
59
  "@testing-library/react": "^13.4.0",
61
60
  "raf-stub": "^2.0.1"
62
61
  },