@atlaskit/editor-core 188.10.5 → 188.11.0
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 +17 -0
- package/architecture/0003-explicit-plugin-dependencies.md +1 -1
- package/dist/cjs/labs/next/presets/universal.js +4 -3
- package/dist/cjs/messages.js +1 -2
- package/dist/cjs/plugins/index.js +0 -14
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/labs/next/presets/universal.js +3 -2
- package/dist/es2019/messages.js +1 -2
- package/dist/es2019/plugins/index.js +0 -2
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/labs/next/presets/universal.js +3 -2
- package/dist/esm/messages.js +1 -2
- package/dist/esm/plugins/index.js +0 -2
- package/dist/esm/version-wrapper.js +1 -1
- package/dist/types/messages.d.ts +1 -2
- package/dist/types/plugins/index.d.ts +0 -2
- package/dist/types/plugins/insert-block/types.d.ts +2 -4
- package/dist/types/types/editor-props.d.ts +1 -1
- package/dist/types/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types/ui/ContentStyles/index.d.ts +2 -2
- package/dist/types-ts4.5/messages.d.ts +1 -2
- package/dist/types-ts4.5/plugins/index.d.ts +0 -2
- package/dist/types-ts4.5/plugins/insert-block/types.d.ts +2 -4
- package/dist/types-ts4.5/types/editor-props.d.ts +1 -1
- package/dist/types-ts4.5/ui/Appearance/FullPage/StyledComponents.d.ts +1 -1
- package/dist/types-ts4.5/ui/ConfigPanel/FormErrorBoundary.d.ts +1 -1
- package/dist/types-ts4.5/ui/ContentStyles/index.d.ts +2 -2
- package/package.json +7 -10
- package/report.api.md +1 -9
- package/tmp/api-report-tmp.d.ts +1 -9
- package/dist/cjs/plugins/date/actions.js +0 -105
- package/dist/cjs/plugins/date/commands.js +0 -118
- package/dist/cjs/plugins/date/index.js +0 -13
- package/dist/cjs/plugins/date/nodeviews/date.js +0 -44
- package/dist/cjs/plugins/date/nodeviews/messages.js +0 -14
- package/dist/cjs/plugins/date/plugin.js +0 -197
- package/dist/cjs/plugins/date/pm-plugins/keymap.js +0 -41
- package/dist/cjs/plugins/date/pm-plugins/main.js +0 -39
- package/dist/cjs/plugins/date/pm-plugins/plugin-key.js +0 -8
- package/dist/cjs/plugins/date/pm-plugins/types.js +0 -5
- package/dist/cjs/plugins/date/pm-plugins/utils.js +0 -70
- package/dist/cjs/plugins/date/types.js +0 -5
- package/dist/cjs/plugins/date/ui/DatePicker/date-picker-input.js +0 -244
- package/dist/cjs/plugins/date/ui/DatePicker/index.js +0 -168
- package/dist/cjs/plugins/date/utils/formatParse.js +0 -88
- package/dist/cjs/plugins/date/utils/internal.js +0 -176
- package/dist/cjs/plugins/mentions/analytics.js +0 -157
- package/dist/cjs/plugins/mentions/index.js +0 -142
- package/dist/cjs/plugins/mentions/messages.js +0 -29
- package/dist/cjs/plugins/mentions/nodeviews/mention.js +0 -117
- package/dist/cjs/plugins/mentions/pm-plugins/key.js +0 -8
- package/dist/cjs/plugins/mentions/pm-plugins/main.js +0 -156
- package/dist/cjs/plugins/mentions/pm-plugins/utils.js +0 -23
- package/dist/cjs/plugins/mentions/type-ahead/index.js +0 -362
- package/dist/cjs/plugins/mentions/types.js +0 -5
- package/dist/cjs/plugins/mentions/ui/InviteItem/index.js +0 -76
- package/dist/cjs/plugins/mentions/ui/InviteItem/styles.js +0 -19
- package/dist/cjs/plugins/mentions/ui/Mention/index.js +0 -98
- package/dist/cjs/plugins/mentions/ui/ToolbarMention/index.js +0 -63
- package/dist/cjs/plugins/mentions/utils.js +0 -32
- package/dist/es2019/plugins/date/actions.js +0 -93
- package/dist/es2019/plugins/date/commands.js +0 -113
- package/dist/es2019/plugins/date/index.js +0 -1
- package/dist/es2019/plugins/date/nodeviews/date.js +0 -47
- package/dist/es2019/plugins/date/nodeviews/messages.js +0 -8
- package/dist/es2019/plugins/date/plugin.js +0 -183
- package/dist/es2019/plugins/date/pm-plugins/keymap.js +0 -34
- package/dist/es2019/plugins/date/pm-plugins/main.js +0 -35
- package/dist/es2019/plugins/date/pm-plugins/plugin-key.js +0 -2
- package/dist/es2019/plugins/date/pm-plugins/types.js +0 -1
- package/dist/es2019/plugins/date/pm-plugins/utils.js +0 -70
- package/dist/es2019/plugins/date/types.js +0 -1
- package/dist/es2019/plugins/date/ui/DatePicker/date-picker-input.js +0 -233
- package/dist/es2019/plugins/date/ui/DatePicker/index.js +0 -152
- package/dist/es2019/plugins/date/utils/formatParse.js +0 -83
- package/dist/es2019/plugins/date/utils/internal.js +0 -151
- package/dist/es2019/plugins/mentions/analytics.js +0 -147
- package/dist/es2019/plugins/mentions/index.js +0 -124
- package/dist/es2019/plugins/mentions/messages.js +0 -23
- package/dist/es2019/plugins/mentions/nodeviews/mention.js +0 -80
- package/dist/es2019/plugins/mentions/pm-plugins/key.js +0 -2
- package/dist/es2019/plugins/mentions/pm-plugins/main.js +0 -143
- package/dist/es2019/plugins/mentions/pm-plugins/utils.js +0 -14
- package/dist/es2019/plugins/mentions/type-ahead/index.js +0 -338
- package/dist/es2019/plugins/mentions/types.js +0 -1
- package/dist/es2019/plugins/mentions/ui/InviteItem/index.js +0 -66
- package/dist/es2019/plugins/mentions/ui/InviteItem/styles.js +0 -47
- package/dist/es2019/plugins/mentions/ui/Mention/index.js +0 -71
- package/dist/es2019/plugins/mentions/ui/ToolbarMention/index.js +0 -33
- package/dist/es2019/plugins/mentions/utils.js +0 -20
- package/dist/esm/plugins/date/actions.js +0 -99
- package/dist/esm/plugins/date/commands.js +0 -112
- package/dist/esm/plugins/date/index.js +0 -1
- package/dist/esm/plugins/date/nodeviews/date.js +0 -37
- package/dist/esm/plugins/date/nodeviews/messages.js +0 -8
- package/dist/esm/plugins/date/plugin.js +0 -185
- package/dist/esm/plugins/date/pm-plugins/keymap.js +0 -34
- package/dist/esm/plugins/date/pm-plugins/main.js +0 -34
- package/dist/esm/plugins/date/pm-plugins/plugin-key.js +0 -2
- package/dist/esm/plugins/date/pm-plugins/types.js +0 -1
- package/dist/esm/plugins/date/pm-plugins/utils.js +0 -61
- package/dist/esm/plugins/date/types.js +0 -1
- package/dist/esm/plugins/date/ui/DatePicker/date-picker-input.js +0 -238
- package/dist/esm/plugins/date/ui/DatePicker/index.js +0 -162
- package/dist/esm/plugins/date/utils/formatParse.js +0 -79
- package/dist/esm/plugins/date/utils/internal.js +0 -165
- package/dist/esm/plugins/mentions/analytics.js +0 -150
- package/dist/esm/plugins/mentions/index.js +0 -130
- package/dist/esm/plugins/mentions/messages.js +0 -23
- package/dist/esm/plugins/mentions/nodeviews/mention.js +0 -107
- package/dist/esm/plugins/mentions/pm-plugins/key.js +0 -2
- package/dist/esm/plugins/mentions/pm-plugins/main.js +0 -148
- package/dist/esm/plugins/mentions/pm-plugins/utils.js +0 -16
- package/dist/esm/plugins/mentions/type-ahead/index.js +0 -350
- package/dist/esm/plugins/mentions/types.js +0 -1
- package/dist/esm/plugins/mentions/ui/InviteItem/index.js +0 -65
- package/dist/esm/plugins/mentions/ui/InviteItem/styles.js +0 -12
- package/dist/esm/plugins/mentions/ui/Mention/index.js +0 -91
- package/dist/esm/plugins/mentions/ui/ToolbarMention/index.js +0 -53
- package/dist/esm/plugins/mentions/utils.js +0 -26
- package/dist/types/plugins/date/actions.d.ts +0 -47
- package/dist/types/plugins/date/commands.d.ts +0 -12
- package/dist/types/plugins/date/index.d.ts +0 -1
- package/dist/types/plugins/date/nodeviews/date.d.ts +0 -3
- package/dist/types/plugins/date/nodeviews/messages.d.ts +0 -7
- package/dist/types/plugins/date/plugin.d.ts +0 -3
- package/dist/types/plugins/date/pm-plugins/keymap.d.ts +0 -3
- package/dist/types/plugins/date/pm-plugins/main.d.ts +0 -6
- package/dist/types/plugins/date/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types/plugins/date/pm-plugins/types.d.ts +0 -12
- package/dist/types/plugins/date/pm-plugins/utils.d.ts +0 -5
- package/dist/types/plugins/date/types.d.ts +0 -1
- package/dist/types/plugins/date/ui/DatePicker/date-picker-input.d.ts +0 -24
- package/dist/types/plugins/date/ui/DatePicker/index.d.ts +0 -36
- package/dist/types/plugins/date/utils/formatParse.d.ts +0 -27
- package/dist/types/plugins/date/utils/internal.d.ts +0 -33
- package/dist/types/plugins/mentions/analytics.d.ts +0 -13
- package/dist/types/plugins/mentions/index.d.ts +0 -19
- package/dist/types/plugins/mentions/messages.d.ts +0 -22
- package/dist/types/plugins/mentions/nodeviews/mention.d.ts +0 -9
- package/dist/types/plugins/mentions/pm-plugins/key.d.ts +0 -3
- package/dist/types/plugins/mentions/pm-plugins/main.d.ts +0 -6
- package/dist/types/plugins/mentions/pm-plugins/utils.d.ts +0 -4
- package/dist/types/plugins/mentions/type-ahead/index.d.ts +0 -17
- package/dist/types/plugins/mentions/types.d.ts +0 -24
- package/dist/types/plugins/mentions/ui/InviteItem/index.d.ts +0 -22
- package/dist/types/plugins/mentions/ui/InviteItem/styles.d.ts +0 -8
- package/dist/types/plugins/mentions/ui/Mention/index.d.ts +0 -19
- package/dist/types/plugins/mentions/ui/ToolbarMention/index.d.ts +0 -13
- package/dist/types/plugins/mentions/utils.d.ts +0 -8
- package/dist/types-ts4.5/plugins/date/actions.d.ts +0 -58
- package/dist/types-ts4.5/plugins/date/commands.d.ts +0 -14
- package/dist/types-ts4.5/plugins/date/index.d.ts +0 -1
- package/dist/types-ts4.5/plugins/date/nodeviews/date.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/nodeviews/messages.d.ts +0 -7
- package/dist/types-ts4.5/plugins/date/plugin.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/pm-plugins/keymap.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/date/pm-plugins/plugin-key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/date/pm-plugins/types.d.ts +0 -12
- package/dist/types-ts4.5/plugins/date/pm-plugins/utils.d.ts +0 -5
- package/dist/types-ts4.5/plugins/date/types.d.ts +0 -1
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/date-picker-input.d.ts +0 -24
- package/dist/types-ts4.5/plugins/date/ui/DatePicker/index.d.ts +0 -36
- package/dist/types-ts4.5/plugins/date/utils/formatParse.d.ts +0 -27
- package/dist/types-ts4.5/plugins/date/utils/internal.d.ts +0 -33
- package/dist/types-ts4.5/plugins/mentions/analytics.d.ts +0 -13
- package/dist/types-ts4.5/plugins/mentions/index.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/messages.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/nodeviews/mention.d.ts +0 -9
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/key.d.ts +0 -3
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/main.d.ts +0 -6
- package/dist/types-ts4.5/plugins/mentions/pm-plugins/utils.d.ts +0 -4
- package/dist/types-ts4.5/plugins/mentions/type-ahead/index.d.ts +0 -17
- package/dist/types-ts4.5/plugins/mentions/types.d.ts +0 -24
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/index.d.ts +0 -22
- package/dist/types-ts4.5/plugins/mentions/ui/InviteItem/styles.d.ts +0 -8
- package/dist/types-ts4.5/plugins/mentions/ui/Mention/index.d.ts +0 -19
- package/dist/types-ts4.5/plugins/mentions/ui/ToolbarMention/index.d.ts +0 -13
- package/dist/types-ts4.5/plugins/mentions/utils.d.ts +0 -8
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as datePlugin } from './plugin';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PMPluginFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { DatePluginState } from './types';
|
|
3
|
-
declare const getPluginState: (state: import("prosemirror-state").EditorState) => DatePluginState;
|
|
4
|
-
declare const createPlugin: PMPluginFactory;
|
|
5
|
-
export { getPluginState };
|
|
6
|
-
export default createPlugin;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type DatePluginState = {
|
|
2
|
-
isQuickInsertAction?: boolean;
|
|
3
|
-
isNew: boolean;
|
|
4
|
-
showDatePickerAt: number | null;
|
|
5
|
-
isDateEmpty: boolean;
|
|
6
|
-
focusDateInput: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type DatePluginMeta = {
|
|
9
|
-
isNew?: boolean;
|
|
10
|
-
showDatePickerAt?: number | null;
|
|
11
|
-
isDateEmpty?: boolean;
|
|
12
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { DatePluginState, DatePluginMeta } from './types';
|
|
3
|
-
export declare function reducer(pluginState: DatePluginState, meta: DatePluginMeta): DatePluginState;
|
|
4
|
-
export declare function mapping(tr: ReadonlyTransaction, pluginState: DatePluginState): DatePluginState;
|
|
5
|
-
export declare function onSelectionChanged(tr: ReadonlyTransaction, pluginState: DatePluginState): DatePluginState;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type DateSegment = 'day' | 'month' | 'year';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { DateType } from '@atlaskit/editor-plugin-date';
|
|
5
|
-
export interface InputProps {
|
|
6
|
-
/** Locale code string (eg. "en-AU") */
|
|
7
|
-
locale: string;
|
|
8
|
-
date: DateType;
|
|
9
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
10
|
-
onNewDate: (date: DateType) => void;
|
|
11
|
-
onSubmitDate: (date: DateType | null) => void;
|
|
12
|
-
onEmptySubmit: () => void;
|
|
13
|
-
/** Automatically focus the text field */
|
|
14
|
-
autoFocus?: boolean;
|
|
15
|
-
/** Automatically select all text in the field. Requires autoFocus to be true. */
|
|
16
|
-
autoSelectAll?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface InputState {
|
|
19
|
-
inputText: string;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<InputProps & WrappedComponentProps<"intl">>> & {
|
|
22
|
-
WrappedComponent: React.ComponentType<InputProps & WrappedComponentProps<"intl">>;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
4
|
-
import type { DateType } from '@atlaskit/editor-plugin-date';
|
|
5
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
|
-
export interface Props {
|
|
9
|
-
element: HTMLElement | null;
|
|
10
|
-
closeDatePicker: () => void;
|
|
11
|
-
/** Whether the date is newly created, selcting and focusing the input */
|
|
12
|
-
isNew: boolean;
|
|
13
|
-
/** Whether to automatically focus the input */
|
|
14
|
-
autoFocus?: boolean;
|
|
15
|
-
onSelect: (date: DateType | null, commitMethod: INPUT_METHOD.PICKER | INPUT_METHOD.KEYBOARD) => void;
|
|
16
|
-
onDelete: () => void;
|
|
17
|
-
mountTo?: HTMLElement;
|
|
18
|
-
boundariesElement?: HTMLElement;
|
|
19
|
-
scrollableElement?: HTMLElement;
|
|
20
|
-
closeDatePickerWithAnalytics: ({ date }: {
|
|
21
|
-
date?: DateType;
|
|
22
|
-
}) => void;
|
|
23
|
-
onTextChanged: (date: DateType) => void;
|
|
24
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
25
|
-
weekStartDay?: WeekDay;
|
|
26
|
-
}
|
|
27
|
-
export interface State {
|
|
28
|
-
date: DateType;
|
|
29
|
-
selected: Array<string>;
|
|
30
|
-
setInputSelectionPos?: number;
|
|
31
|
-
latestValidDate: DateType;
|
|
32
|
-
}
|
|
33
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
34
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import type { DateType } from '@atlaskit/editor-plugin-date';
|
|
2
|
-
/**
|
|
3
|
-
* Attempt to parse a string representing a date in a particular locale to a date object
|
|
4
|
-
* @param dateString The string representing the date in the given locale, eg '02/12/2000'
|
|
5
|
-
* @param l10n The localisation provider created by createLocalizationProvider
|
|
6
|
-
* @returns Editor DateType when can parse, null when can't parse or invalid
|
|
7
|
-
*/
|
|
8
|
-
export declare function parseDateType(dateString: string, locale: string): DateType | null;
|
|
9
|
-
/**
|
|
10
|
-
* Convert an EditorDateType to a date string string formatted for a particular locale
|
|
11
|
-
* @param date The date object
|
|
12
|
-
* @param locale The locale code string (eg. "en-AU")
|
|
13
|
-
* @returns Date string, eg "25/5/20"
|
|
14
|
-
*/
|
|
15
|
-
export declare function formatDateType(date: DateType, locale: string): string;
|
|
16
|
-
/**
|
|
17
|
-
* Convert an Editor DateType to a JavaScript Date object
|
|
18
|
-
* @param date Editor DateType
|
|
19
|
-
* @returns JavaScript Date object
|
|
20
|
-
*/
|
|
21
|
-
export declare function dateTypeToDate(date: DateType): Date;
|
|
22
|
-
/**
|
|
23
|
-
* Convert a JavaScript Date to an editor DateType
|
|
24
|
-
* @param date JavaScript Date object
|
|
25
|
-
* @returns Editor DateType
|
|
26
|
-
*/
|
|
27
|
-
export declare function dateToDateType(date: Date): DateType;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { DateSegment } from '../types';
|
|
2
|
-
import type { DateType } from '@atlaskit/editor-plugin-date';
|
|
3
|
-
/**
|
|
4
|
-
* Inconclusively check if a date string is valid - a value of false means it is definitely
|
|
5
|
-
* invalid, a value of true means it might be valid.
|
|
6
|
-
* @param date Date string to be parsed
|
|
7
|
-
*/
|
|
8
|
-
export declare function isDatePossiblyValid(date: string): boolean;
|
|
9
|
-
/**
|
|
10
|
-
* Find the segment of a date a position refers to. Eg: pos 2 in 29/03/2020 is in
|
|
11
|
-
* the day segment.
|
|
12
|
-
* @param position Cursor position, with 0 referring to the left of the first char
|
|
13
|
-
* @param date The localised date string
|
|
14
|
-
* @param locale The language to interpret the date string in
|
|
15
|
-
*/
|
|
16
|
-
export declare function findDateSegmentByPosition(position: number, date: string, locale: string): DateSegment | undefined;
|
|
17
|
-
/**
|
|
18
|
-
* Generate a placeholder date string for a given locale
|
|
19
|
-
* eg: locale 'hu-HU' -> 'yyyy. mm. dd.'
|
|
20
|
-
* @param locale A locale string supported by Intl.DateTimeFormat
|
|
21
|
-
* @returns A placeholder string. d=1 or 2 digit day, dd=zero padded
|
|
22
|
-
* day, same for month but letter m, yyyy=year
|
|
23
|
-
*/
|
|
24
|
-
export declare function getLocaleDatePlaceholder(locale: string): string | undefined;
|
|
25
|
-
/**
|
|
26
|
-
* Adjust date segment up or down. Eg. If day is the active segment and adjustment is -1,
|
|
27
|
-
* reduce the day by one.
|
|
28
|
-
* @param date Valid datetype
|
|
29
|
-
* @param activeSegment which part of the date is selected/being adjusted
|
|
30
|
-
* @param adjustment how many units the segment is being adjusted (can be pos or neg, usually 1 or -1)
|
|
31
|
-
*/
|
|
32
|
-
export declare function adjustDate(date: DateType, activeSegment: DateSegment, adjustment: number): DateType;
|
|
33
|
-
export declare function isToday(date: DateType | undefined): boolean;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type { EventType, GasPayload } from '@atlaskit/analytics-gas-types';
|
|
2
|
-
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
3
|
-
import type { InviteExperimentCohort, UserRole } from '@atlaskit/mention';
|
|
4
|
-
import type { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
|
|
5
|
-
import type { TeamInfoAttrAnalytics } from './types';
|
|
6
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
7
|
-
export declare const buildAnalyticsPayload: (actionSubject: string, action: string, eventType: EventType, sessionId: string, otherAttributes?: {}, tags?: Array<string>) => GasPayload;
|
|
8
|
-
export declare const buildTypeAheadCancelPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, query?: string) => GasPayload;
|
|
9
|
-
export declare const buildTypeAheadInviteItemViewedPayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
10
|
-
export declare const buildTypeAheadInviteExposurePayload: (sessionId: string, contextIdentifierProvider?: ContextIdentifierProvider, inviteExperimentCohort?: InviteExperimentCohort, userRole?: UserRole) => GasPayload;
|
|
11
|
-
export declare const buildTypeAheadInviteItemClickedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, query?: string, contextIdentifierProvider?: ContextIdentifierProvider, userRole?: UserRole) => GasPayload;
|
|
12
|
-
export declare const buildTypeAheadInsertedPayload: (duration: number, upKeyCount: number, downKeyCount: number, sessionId: string, insertType: SelectItemMode, mention: MentionDescription, mentionList?: MentionDescription[], query?: string, contextIdentifierProvider?: ContextIdentifierProvider) => GasPayload;
|
|
13
|
-
export declare const buildTypeAheadRenderedPayload: (duration: number, userIds: Array<string> | null, query: string, teams: TeamInfoAttrAnalytics[] | null) => GasPayload;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { NextEditorPlugin, OptionalPlugin, TypeAheadHandler } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { MentionPluginOptions, MentionPluginState } from './types';
|
|
3
|
-
import { mentionPluginKey } from './pm-plugins/key';
|
|
4
|
-
import type { analyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
5
|
-
import type { TypeAheadPlugin, TypeAheadInputMethod } from '@atlaskit/editor-plugin-type-ahead';
|
|
6
|
-
export { mentionPluginKey };
|
|
7
|
-
export type MentionSharedState = MentionPluginState & {
|
|
8
|
-
typeAheadHandler: TypeAheadHandler;
|
|
9
|
-
};
|
|
10
|
-
export type MentionPlugin = NextEditorPlugin<'mention', {
|
|
11
|
-
pluginConfiguration: MentionPluginOptions | undefined;
|
|
12
|
-
dependencies: [OptionalPlugin<typeof analyticsPlugin>, TypeAheadPlugin];
|
|
13
|
-
sharedState: MentionSharedState | undefined;
|
|
14
|
-
actions: {
|
|
15
|
-
openTypeAhead: (inputMethod: TypeAheadInputMethod) => boolean;
|
|
16
|
-
};
|
|
17
|
-
}>;
|
|
18
|
-
declare const mentionsPlugin: MentionPlugin;
|
|
19
|
-
export default mentionsPlugin;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export declare const messages: {
|
|
2
|
-
inviteItemTitle: {
|
|
3
|
-
id: string;
|
|
4
|
-
defaultMessage: string;
|
|
5
|
-
description: string;
|
|
6
|
-
};
|
|
7
|
-
mentionsAddLabel: {
|
|
8
|
-
id: string;
|
|
9
|
-
defaultMessage: string;
|
|
10
|
-
description: string;
|
|
11
|
-
};
|
|
12
|
-
mentionsIconLabel: {
|
|
13
|
-
id: string;
|
|
14
|
-
defaultMessage: string;
|
|
15
|
-
description: string;
|
|
16
|
-
};
|
|
17
|
-
mentionsNodeLabel: {
|
|
18
|
-
id: string;
|
|
19
|
-
defaultMessage: string;
|
|
20
|
-
description: string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import { MentionPluginOptions } from '../types';
|
|
4
|
-
import type { InlineNodeViewComponentProps } from '@atlaskit/editor-common/react-node-view';
|
|
5
|
-
export type Props = InlineNodeViewComponentProps & {
|
|
6
|
-
options: MentionPluginOptions | undefined;
|
|
7
|
-
providerFactory: ProviderFactory;
|
|
8
|
-
};
|
|
9
|
-
export declare const MentionNodeView: React.FC<Props>;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { SafePlugin } from '@atlaskit/editor-common/safe-plugin';
|
|
2
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { Command, PMPluginFactoryParams } from '../../../types';
|
|
4
|
-
import type { MentionPluginOptions, MentionPluginState } from '../types';
|
|
5
|
-
export declare const setContext: (context: ContextIdentifierProvider | undefined) => Command;
|
|
6
|
-
export declare function createMentionPlugin(pmPluginFactoryParams: PMPluginFactoryParams, fireEvent: (payload: any) => void, options?: MentionPluginOptions): SafePlugin<MentionPluginState>;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { EditorState } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { MentionPluginState } from '../types';
|
|
3
|
-
export declare function getMentionPluginState(state: EditorState): MentionPluginState;
|
|
4
|
-
export declare const canMentionBeCreatedInRange: (from: number, to: number) => (state: EditorState) => boolean;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { MentionDescription } from '@atlaskit/mention/resource';
|
|
3
|
-
import type { TypeAheadHandler, TypeAheadItem } from '@atlaskit/editor-common/types';
|
|
4
|
-
import type { FireElementsChannelEvent } from '../types';
|
|
5
|
-
export declare const mentionToTypeaheadItem: (mention: MentionDescription) => TypeAheadItem;
|
|
6
|
-
export declare function memoize<ResultFn extends (mention: MentionDescription) => TypeAheadItem>(fn: ResultFn): {
|
|
7
|
-
call: ResultFn;
|
|
8
|
-
clear(): void;
|
|
9
|
-
};
|
|
10
|
-
type Props = {
|
|
11
|
-
sanitizePrivateContent?: boolean;
|
|
12
|
-
mentionInsertDisplayName?: boolean;
|
|
13
|
-
HighlightComponent?: React.ComponentType;
|
|
14
|
-
fireEvent: FireElementsChannelEvent;
|
|
15
|
-
};
|
|
16
|
-
export declare const createTypeAheadConfig: ({ sanitizePrivateContent, mentionInsertDisplayName, fireEvent, HighlightComponent, }: Props) => TypeAheadHandler;
|
|
17
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import type { MentionDescription, MentionProvider } from '@atlaskit/mention';
|
|
3
|
-
import type { ContextIdentifierProvider } from '@atlaskit/editor-common/provider-factory';
|
|
4
|
-
import type { AnalyticsEventPayload } from '@atlaskit/analytics-next';
|
|
5
|
-
export interface TeamInfoAttrAnalytics {
|
|
6
|
-
teamId: String;
|
|
7
|
-
includesYou: boolean;
|
|
8
|
-
memberCount: number;
|
|
9
|
-
}
|
|
10
|
-
export interface MentionPluginConfig {
|
|
11
|
-
HighlightComponent?: React.ComponentType;
|
|
12
|
-
insertDisplayName?: boolean;
|
|
13
|
-
}
|
|
14
|
-
export interface MentionPluginOptions extends MentionPluginConfig {
|
|
15
|
-
sanitizePrivateContent?: boolean;
|
|
16
|
-
allowZeroWidthSpaceAfter?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export type MentionPluginState = {
|
|
19
|
-
mentionProvider?: MentionProvider;
|
|
20
|
-
contextIdentifierProvider?: ContextIdentifierProvider;
|
|
21
|
-
mentions?: Array<MentionDescription>;
|
|
22
|
-
canInsertMention?: boolean;
|
|
23
|
-
};
|
|
24
|
-
export type FireElementsChannelEvent = <T extends AnalyticsEventPayload>(payload: T) => void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { MentionDescription } from '@atlaskit/mention/resource';
|
|
2
|
-
import { UserRole } from '@atlaskit/mention';
|
|
3
|
-
import React, { SyntheticEvent } from 'react';
|
|
4
|
-
import { WrappedComponentProps } from 'react-intl-next';
|
|
5
|
-
interface OnMentionEvent {
|
|
6
|
-
(mention: MentionDescription, event?: SyntheticEvent<any>): void;
|
|
7
|
-
}
|
|
8
|
-
export declare const INVITE_ITEM_DESCRIPTION: {
|
|
9
|
-
id: string;
|
|
10
|
-
};
|
|
11
|
-
interface Props {
|
|
12
|
-
productName?: string;
|
|
13
|
-
onMount?: () => void;
|
|
14
|
-
onMouseEnter?: OnMentionEvent;
|
|
15
|
-
onSelection?: OnMentionEvent;
|
|
16
|
-
selected?: boolean;
|
|
17
|
-
userRole?: UserRole;
|
|
18
|
-
}
|
|
19
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
20
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
export declare const ROW_SIDE_PADDING = 14;
|
|
2
|
-
export declare const rowStyle: import("@emotion/react").SerializedStyles;
|
|
3
|
-
export declare const AVATAR_HEIGHT = 36;
|
|
4
|
-
export declare const avatarStyle: import("@emotion/react").SerializedStyles;
|
|
5
|
-
export declare const nameSectionStyle: import("@emotion/react").SerializedStyles;
|
|
6
|
-
export declare const mentionItemStyle: import("@emotion/react").SerializedStyles;
|
|
7
|
-
export declare const mentionItemSelectedStyle: import("@emotion/react").SerializedStyles;
|
|
8
|
-
export declare const capitalizedStyle: import("@emotion/react").SerializedStyles;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PureComponent } from 'react';
|
|
2
|
-
import { ProviderFactory } from '@atlaskit/editor-common/provider-factory';
|
|
3
|
-
import type { MentionEventHandlers } from '@atlaskit/editor-common/ui';
|
|
4
|
-
export interface MentionProps {
|
|
5
|
-
id: string;
|
|
6
|
-
providers?: ProviderFactory;
|
|
7
|
-
eventHandlers?: MentionEventHandlers;
|
|
8
|
-
text: string;
|
|
9
|
-
accessLevel?: string;
|
|
10
|
-
}
|
|
11
|
-
export default class Mention extends PureComponent<MentionProps, {}> {
|
|
12
|
-
static displayName: string;
|
|
13
|
-
private providerFactory;
|
|
14
|
-
constructor(props: MentionProps);
|
|
15
|
-
componentDidMount(): void;
|
|
16
|
-
componentWillUnmount(): void;
|
|
17
|
-
private renderWithProvider;
|
|
18
|
-
render(): JSX.Element;
|
|
19
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
3
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
4
|
-
interface Props {
|
|
5
|
-
onInsertMention: () => void;
|
|
6
|
-
editorView?: EditorView;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
testId?: string;
|
|
9
|
-
}
|
|
10
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
11
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
12
|
-
};
|
|
13
|
-
export default _default;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { MentionDescription } from '@atlaskit/mention';
|
|
2
|
-
export declare const isTeamType: (userType: any) => Boolean;
|
|
3
|
-
export declare const isTeamStats: (stat: any) => Boolean;
|
|
4
|
-
export declare const isInviteItem: (mention: MentionDescription) => Boolean;
|
|
5
|
-
/**
|
|
6
|
-
* Actions
|
|
7
|
-
*/
|
|
8
|
-
export declare const shouldKeepInviteItem: (query: string, firstQueryWithoutResults: string) => boolean;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import type { EditorState, Transaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { DatePlugin, DateType } from '@atlaskit/editor-plugin-date';
|
|
3
|
-
import type { Command, CommandDispatch, ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
4
|
-
export declare const createDate: (isQuickInsertAction?: boolean) => (insert: (node: Node | Object | string, opts?: any) => Transaction, state: EditorState) => Transaction;
|
|
5
|
-
/** Focus input */
|
|
6
|
-
export declare const focusDateInput: () => (state: EditorState, dispatch: CommandDispatch | undefined) => boolean;
|
|
7
|
-
export declare const setDatePickerAt: (showDatePickerAt: number | null) => (state: EditorState, dispatch: (tr: Transaction) => void) => boolean;
|
|
8
|
-
export declare const closeDatePicker: () => Command;
|
|
9
|
-
export declare const closeDatePickerWithAnalytics: ({ date, pluginInjectionApi, }: {
|
|
10
|
-
date?: DateType | undefined;
|
|
11
|
-
pluginInjectionApi?: import("@atlaskit/editor-common/types").PublicPluginAPI<[
|
|
12
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"date", {
|
|
13
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-date").DatePluginConfig | undefined;
|
|
14
|
-
dependencies: [
|
|
15
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
16
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
17
|
-
sharedState: {
|
|
18
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
19
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
20
|
-
};
|
|
21
|
-
dependencies: [
|
|
22
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
23
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
24
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
25
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>
|
|
26
|
-
];
|
|
27
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
28
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
29
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
30
|
-
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
31
|
-
}, undefined>
|
|
32
|
-
];
|
|
33
|
-
sharedState: import("@atlaskit/editor-plugin-date").DatePluginSharedState;
|
|
34
|
-
commands: {
|
|
35
|
-
insertDate: import("@atlaskit/editor-plugin-date").InsertDate;
|
|
36
|
-
deleteDate: import("@atlaskit/editor-common/types").EditorCommand;
|
|
37
|
-
};
|
|
38
|
-
}, import("@atlaskit/editor-plugin-date").DatePluginConfig | undefined>,
|
|
39
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"analytics", {
|
|
40
|
-
pluginConfiguration: import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions;
|
|
41
|
-
sharedState: {
|
|
42
|
-
createAnalyticsEvent: import("@atlaskit/analytics-next").CreateUIAnalyticsEvent | null;
|
|
43
|
-
attachAnalyticsEvent: import("@atlaskit/editor-plugin-analytics").CreateAttachPayloadIntoTransaction | null;
|
|
44
|
-
};
|
|
45
|
-
dependencies: [
|
|
46
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"featureFlags", {
|
|
47
|
-
pluginConfiguration: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
48
|
-
sharedState: import("@atlaskit/editor-common/types").FeatureFlags;
|
|
49
|
-
}, import("@atlaskit/editor-common/types").FeatureFlags>
|
|
50
|
-
];
|
|
51
|
-
actions: import("@atlaskit/editor-common/analytics").EditorAnalyticsAPI;
|
|
52
|
-
}, import("@atlaskit/editor-plugin-analytics").AnalyticsPluginOptions>,
|
|
53
|
-
import("@atlaskit/editor-common/types").NextEditorPluginFunctionOptionalConfigDefinition<"editorDisabled", {
|
|
54
|
-
sharedState: import("@atlaskit/editor-plugin-editor-disabled").EditorDisabledPluginState;
|
|
55
|
-
}, undefined>
|
|
56
|
-
]> | undefined;
|
|
57
|
-
}) => Command;
|
|
58
|
-
export declare const openDatePicker: () => Command;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import type { PluginInjectionAPIWithDependencies, OptionalPlugin } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { AnalyticsPlugin } from '@atlaskit/editor-plugin-analytics';
|
|
3
|
-
import type { DeleteDate, InsertDate, DatePlugin } from '@atlaskit/editor-plugin-date';
|
|
4
|
-
type DeleteDateCommand = (pluginInjectionApi: PluginInjectionAPIWithDependencies<[
|
|
5
|
-
DatePlugin
|
|
6
|
-
]> | undefined) => DeleteDate;
|
|
7
|
-
/** Delete the date and close the datepicker */
|
|
8
|
-
export declare const deleteDateCommand: DeleteDateCommand;
|
|
9
|
-
type InsertDateCommand = (pluginInjectionApi: PluginInjectionAPIWithDependencies<[
|
|
10
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
11
|
-
DatePlugin
|
|
12
|
-
]> | undefined) => InsertDate;
|
|
13
|
-
export declare const insertDateCommand: InsertDateCommand;
|
|
14
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as datePlugin } from './plugin';
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { PMPluginFactory } from '@atlaskit/editor-common/types';
|
|
2
|
-
import type { DatePluginState } from './types';
|
|
3
|
-
declare const getPluginState: (state: import("prosemirror-state").EditorState) => DatePluginState;
|
|
4
|
-
declare const createPlugin: PMPluginFactory;
|
|
5
|
-
export { getPluginState };
|
|
6
|
-
export default createPlugin;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type DatePluginState = {
|
|
2
|
-
isQuickInsertAction?: boolean;
|
|
3
|
-
isNew: boolean;
|
|
4
|
-
showDatePickerAt: number | null;
|
|
5
|
-
isDateEmpty: boolean;
|
|
6
|
-
focusDateInput: boolean;
|
|
7
|
-
};
|
|
8
|
-
export type DatePluginMeta = {
|
|
9
|
-
isNew?: boolean;
|
|
10
|
-
showDatePickerAt?: number | null;
|
|
11
|
-
isDateEmpty?: boolean;
|
|
12
|
-
};
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ReadonlyTransaction } from '@atlaskit/editor-prosemirror/state';
|
|
2
|
-
import type { DatePluginState, DatePluginMeta } from './types';
|
|
3
|
-
export declare function reducer(pluginState: DatePluginState, meta: DatePluginMeta): DatePluginState;
|
|
4
|
-
export declare function mapping(tr: ReadonlyTransaction, pluginState: DatePluginState): DatePluginState;
|
|
5
|
-
export declare function onSelectionChanged(tr: ReadonlyTransaction, pluginState: DatePluginState): DatePluginState;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type DateSegment = 'day' | 'month' | 'year';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
3
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
|
-
import type { DateType } from '@atlaskit/editor-plugin-date';
|
|
5
|
-
export interface InputProps {
|
|
6
|
-
/** Locale code string (eg. "en-AU") */
|
|
7
|
-
locale: string;
|
|
8
|
-
date: DateType;
|
|
9
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
10
|
-
onNewDate: (date: DateType) => void;
|
|
11
|
-
onSubmitDate: (date: DateType | null) => void;
|
|
12
|
-
onEmptySubmit: () => void;
|
|
13
|
-
/** Automatically focus the text field */
|
|
14
|
-
autoFocus?: boolean;
|
|
15
|
-
/** Automatically select all text in the field. Requires autoFocus to be true. */
|
|
16
|
-
autoSelectAll?: boolean;
|
|
17
|
-
}
|
|
18
|
-
export interface InputState {
|
|
19
|
-
inputText: string;
|
|
20
|
-
}
|
|
21
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<InputProps & WrappedComponentProps<"intl">>> & {
|
|
22
|
-
WrappedComponent: React.ComponentType<InputProps & WrappedComponentProps<"intl">>;
|
|
23
|
-
};
|
|
24
|
-
export default _default;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/** @jsx jsx */
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { WeekDay } from '@atlaskit/calendar/types';
|
|
4
|
-
import type { DateType } from '@atlaskit/editor-plugin-date';
|
|
5
|
-
import { INPUT_METHOD } from '@atlaskit/editor-common/analytics';
|
|
6
|
-
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
7
|
-
import type { WrappedComponentProps } from 'react-intl-next';
|
|
8
|
-
export interface Props {
|
|
9
|
-
element: HTMLElement | null;
|
|
10
|
-
closeDatePicker: () => void;
|
|
11
|
-
/** Whether the date is newly created, selcting and focusing the input */
|
|
12
|
-
isNew: boolean;
|
|
13
|
-
/** Whether to automatically focus the input */
|
|
14
|
-
autoFocus?: boolean;
|
|
15
|
-
onSelect: (date: DateType | null, commitMethod: INPUT_METHOD.PICKER | INPUT_METHOD.KEYBOARD) => void;
|
|
16
|
-
onDelete: () => void;
|
|
17
|
-
mountTo?: HTMLElement;
|
|
18
|
-
boundariesElement?: HTMLElement;
|
|
19
|
-
scrollableElement?: HTMLElement;
|
|
20
|
-
closeDatePickerWithAnalytics: ({ date }: {
|
|
21
|
-
date?: DateType;
|
|
22
|
-
}) => void;
|
|
23
|
-
onTextChanged: (date: DateType) => void;
|
|
24
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
25
|
-
weekStartDay?: WeekDay;
|
|
26
|
-
}
|
|
27
|
-
export interface State {
|
|
28
|
-
date: DateType;
|
|
29
|
-
selected: Array<string>;
|
|
30
|
-
setInputSelectionPos?: number;
|
|
31
|
-
latestValidDate: DateType;
|
|
32
|
-
}
|
|
33
|
-
declare const _default: React.FC<import("react-intl-next").WithIntlProps<Props & WrappedComponentProps<"intl">>> & {
|
|
34
|
-
WrappedComponent: React.ComponentType<Props & WrappedComponentProps<"intl">>;
|
|
35
|
-
};
|
|
36
|
-
export default _default;
|