@atlaskit/editor-plugin-status 12.0.15 → 12.0.16

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-status
2
2
 
3
+ ## 12.0.16
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 12.0.15
4
10
 
5
11
  ### Patch Changes
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/actions.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/actions.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/actions.d.ts"
17
10
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-status",
3
- "version": "12.0.15",
3
+ "version": "12.0.16",
4
4
  "description": "Status plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -38,7 +38,7 @@
38
38
  "@atlaskit/icon": "^35.4.0",
39
39
  "@atlaskit/platform-feature-flags": "^1.1.0",
40
40
  "@atlaskit/status": "^4.1.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
  "@atlaskit/visually-hidden": "^3.1.0",
44
44
  "@babel/runtime": "^7.0.0",
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/status-plugin.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/status-plugin.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/status-plugin.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/status-plugin-type.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/status-plugin-type.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/status-plugin-type.d.ts"
17
10
  }
@@ -6,12 +6,5 @@
6
6
  "sideEffects": [
7
7
  "*.compiled.css"
8
8
  ],
9
- "types": "../dist/types/entry-points/types.d.ts",
10
- "typesVersions": {
11
- ">=4.5 <5.9": {
12
- "*": [
13
- "../dist/types-ts4.5/entry-points/types.d.ts"
14
- ]
15
- }
16
- }
9
+ "types": "../dist/types/entry-points/types.d.ts"
17
10
  }
@@ -1 +0,0 @@
1
- export type { UpdateStatus } from '../pm-plugins/actions';
@@ -1 +0,0 @@
1
- export type { StatusPlugin, StatusPluginDependencies, StatusPluginActions, StatusPluginCommands, } from '../statusPluginType';
@@ -1 +0,0 @@
1
- export { statusPlugin } from '../statusPlugin';
@@ -1 +0,0 @@
1
- export type { StatusState, StatusType, StatusPluginOptions, ClosingPayload } from '../types/index';
@@ -1,4 +0,0 @@
1
- export { statusPlugin } from './statusPlugin';
2
- export type { StatusPlugin, StatusPluginDependencies, StatusPluginActions, StatusPluginCommands, } from './statusPluginType';
3
- export type { StatusState, StatusType, StatusPluginOptions, ClosingPayload } from './types';
4
- export type { UpdateStatus } from './pm-plugins/actions';
@@ -1,28 +0,0 @@
1
- import type { IntlShape } from 'react-intl';
2
- import type { Node as PMNode } from '@atlaskit/editor-prosemirror/model';
3
- import type { NodeView } from '@atlaskit/editor-prosemirror/view';
4
- /**
5
- *
6
- */
7
- export declare class StatusNodeView implements NodeView {
8
- dom: Node;
9
- domElement: HTMLElement | undefined;
10
- private box;
11
- private textContainer;
12
- private node;
13
- private intl;
14
- /**
15
- *
16
- * @param node
17
- * @param intl
18
- * @example
19
- */
20
- constructor(node: PMNode, intl: IntlShape);
21
- private setPlaceholder;
22
- /**
23
- *
24
- * @param node
25
- * @example
26
- */
27
- update(node: PMNode): boolean;
28
- }
@@ -1,2 +0,0 @@
1
- import type { DOMOutputSpec, Node as PMNode } from '@atlaskit/editor-prosemirror/model';
2
- export declare const statusToDOM: (node: PMNode) => DOMOutputSpec;
@@ -1,20 +0,0 @@
1
- import type { EditorAnalyticsAPI } from '@atlaskit/editor-common/analytics';
2
- import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
3
- import type { Command, CommandDispatch, EditorCommand, TOOLBAR_MENU_TYPE } from '@atlaskit/editor-common/types';
4
- import { type Mark } from '@atlaskit/editor-prosemirror/model';
5
- import type { Node } from '@atlaskit/editor-prosemirror/model';
6
- import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
7
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
8
- import type { ClosingPayload, StatusType } from '../types';
9
- export declare const DEFAULT_STATUS: StatusType;
10
- export declare const DEFAULT_STATUS_NEW: StatusType;
11
- export declare const verifyAndInsertStatus: (statusNode: Node, tr: Transaction, annotationMarks?: Mark[] | undefined) => Transaction;
12
- export declare const createStatus: (tr: Transaction) => Transaction;
13
- export declare const insertStatus: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod?: INPUT_METHOD.INSERT_MENU | INPUT_METHOD.QUICK_INSERT | INPUT_METHOD.TOOLBAR) => EditorCommand;
14
- export declare const updateStatus: (status?: StatusType) => Command;
15
- export type UpdateStatus = (inputMethod: TOOLBAR_MENU_TYPE, status?: StatusType) => Command;
16
- export declare const updateStatusWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => (inputMethod: TOOLBAR_MENU_TYPE, status?: StatusType) => Command;
17
- export declare const setStatusPickerAt: (showStatusPickerAt: number | null) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
18
- export declare const removeStatus: (showStatusPickerAt: number) => EditorCommand;
19
- export declare const setFocusOnStatusInput: () => (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
20
- export declare const commitStatusPicker: (closingPayload?: ClosingPayload) => (editorView: EditorView) => void;
@@ -1,3 +0,0 @@
1
- import type { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- export declare function keymapPlugin(): SafePlugin;
3
- export default keymapPlugin;
@@ -1,3 +0,0 @@
1
- import { PluginKey } from '@atlaskit/editor-prosemirror/state';
2
- import type { StatusState } from '../types';
3
- export declare const pluginKey: PluginKey<StatusState>;
@@ -1,5 +0,0 @@
1
- import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
2
- import type { PMPluginFactoryParams } from '@atlaskit/editor-common/types';
3
- import type { StatusPluginOptions } from '../types';
4
- declare const createPlugin: (pmPluginFactoryParams: PMPluginFactoryParams, options?: StatusPluginOptions) => SafePlugin;
5
- export default createPlugin;
@@ -1,5 +0,0 @@
1
- import type { Selection, Transaction } from '@atlaskit/editor-prosemirror/state';
2
- import type { StatusType } from '../types';
3
- export declare const mayGetStatusAtSelection: (selection: Selection) => StatusType | null;
4
- export declare const isEmptyStatus: (node: StatusType) => boolean;
5
- export declare const setNodeSelectionNearPos: (tr: Transaction, pos: number) => Transaction;
@@ -1,2 +0,0 @@
1
- import type { StatusPlugin } from './statusPluginType';
2
- export declare const statusPlugin: StatusPlugin;
@@ -1,44 +0,0 @@
1
- import type { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
2
- import type { NextEditorPlugin, OptionalPlugin, Command } from '@atlaskit/editor-common/types';
3
- import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
4
- import type { commitStatusPicker, insertStatus, removeStatus, UpdateStatus } from './pm-plugins/actions';
5
- import type { StatusPluginOptions, StatusState } from './types';
6
- type DummyAnnotationPlugin = NextEditorPlugin<'annotation', {
7
- actions: {
8
- setInlineCommentDraftState: (isDraft: boolean, inputMethod: INPUT_METHOD) => Command;
9
- };
10
- sharedState: {
11
- annotations: Record<string, boolean>;
12
- bookmark: boolean;
13
- isVisible: boolean;
14
- mouseData: {
15
- isSelecting: boolean;
16
- };
17
- };
18
- }>;
19
- type DummyEditorViewModePlugin = NextEditorPlugin<'editorViewMode', {
20
- sharedState: {
21
- mode: 'view' | 'edit';
22
- };
23
- }>;
24
- export type StatusPluginDependencies = [
25
- OptionalPlugin<AnalyticsPlugin>,
26
- OptionalPlugin<DummyAnnotationPlugin>,
27
- OptionalPlugin<DummyEditorViewModePlugin>
28
- ];
29
- export type StatusPluginActions = {
30
- commitStatusPicker: typeof commitStatusPicker;
31
- updateStatus: UpdateStatus;
32
- };
33
- export type StatusPluginCommands = {
34
- insertStatus: ReturnType<typeof insertStatus>;
35
- removeStatus: typeof removeStatus;
36
- };
37
- export type StatusPlugin = NextEditorPlugin<'status', {
38
- actions: StatusPluginActions;
39
- commands: StatusPluginCommands;
40
- dependencies: StatusPluginDependencies;
41
- pluginConfiguration: StatusPluginOptions | undefined;
42
- sharedState: StatusState | undefined;
43
- }>;
44
- export {};
@@ -1,20 +0,0 @@
1
- import type { Color as ColorType } from '@atlaskit/status/element';
2
- import type { closingMethods } from '../ui/statusPicker';
3
- export type StatusType = {
4
- color: ColorType;
5
- localId?: string;
6
- style?: string;
7
- text: string;
8
- };
9
- export type StatusState = {
10
- focusStatusInput?: boolean;
11
- isNew: boolean;
12
- showStatusPickerAt: number | null;
13
- };
14
- export interface StatusPluginOptions {
15
- allowZeroWidthSpaceAfter?: boolean;
16
- menuDisabled: boolean;
17
- }
18
- export type ClosingPayload = {
19
- closingMethod: closingMethods;
20
- };
@@ -1,15 +0,0 @@
1
- import React from 'react';
2
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
3
- import type { DomAtPos } from '@atlaskit/editor-prosemirror/utils';
4
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
5
- import type { StatusPlugin } from '../statusPluginType';
6
- interface ContentComponentProps {
7
- api: ExtractInjectionAPI<StatusPlugin> | undefined;
8
- domAtPos: DomAtPos;
9
- editorView: EditorView;
10
- popupsBoundariesElement?: HTMLElement;
11
- popupsMountPoint?: HTMLElement;
12
- popupsScrollableElement?: HTMLElement;
13
- }
14
- export declare function ContentComponent({ api, popupsMountPoint, popupsBoundariesElement, popupsScrollableElement, editorView, domAtPos, }: ContentComponentProps): React.JSX.Element | null;
15
- export {};
@@ -1,4 +0,0 @@
1
- import type { AnalyticsEventPayload, CreateUIAnalyticsEvent } from '@atlaskit/analytics-next';
2
- export declare const FABRIC_CHANNEL = "fabric-elements";
3
- export declare const createStatusAnalyticsAndFire: (createAnalyticsEvent?: CreateUIAnalyticsEvent) => (payload: AnalyticsEventPayload) => void;
4
- export declare const analyticsState: (isNew: boolean | undefined) => "new" | "update";
@@ -1,49 +0,0 @@
1
- import React from 'react';
2
- import { type WithIntlProps, type WrappedComponentProps } from 'react-intl';
3
- import type { CreateUIAnalyticsEvent, WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
4
- import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
5
- import type { EditorView } from '@atlaskit/editor-prosemirror/view';
6
- import type { ColorType as Color } from '@atlaskit/status/picker';
7
- import type { StatusPlugin } from '../statusPluginType';
8
- import type { ClosingPayload, StatusType } from '../types';
9
- export declare enum InputMethod {
10
- blur = "blur",
11
- escKey = "escKey",
12
- enterKey = "enterKey"
13
- }
14
- export declare enum closingMethods {
15
- ArrowLeft = "arrowLeft",
16
- ArrowRight = "arrowRight"
17
- }
18
- export interface Props {
19
- api?: ExtractInjectionAPI<StatusPlugin>;
20
- boundariesElement?: HTMLElement;
21
- closeStatusPicker: (closingPayload?: ClosingPayload) => void;
22
- createAnalyticsEvent?: CreateUIAnalyticsEvent;
23
- defaultColor?: Color;
24
- defaultLocalId?: string;
25
- defaultText?: string;
26
- editorView: EditorView;
27
- focusStatusInput?: boolean;
28
- intl: WrappedComponentProps['intl'];
29
- isNew?: boolean;
30
- mountTo?: HTMLElement;
31
- onEnter: (status: StatusType) => void;
32
- onSelect: (status: StatusType) => void;
33
- onTextChanged: (status: StatusType, isNew: boolean) => void;
34
- scrollableElement?: HTMLElement;
35
- target: HTMLElement | null;
36
- }
37
- export interface State {
38
- color: Color;
39
- isNew?: boolean;
40
- localId?: string;
41
- text: string;
42
- }
43
- export declare const StatusPickerWithoutAnalytcs: React.FC<WithIntlProps<Props>> & {
44
- WrappedComponent: React.ComponentType<Props>;
45
- };
46
- declare const _default_1: React.ForwardRefExoticComponent<Omit<Omit<Props, 'intl'> & {
47
- forwardedRef?: React.Ref<any>;
48
- }, keyof WithAnalyticsEventsProps> & React.RefAttributes<any>>;
49
- export default _default_1;