@atlaskit/editor-plugin-find-replace 3.2.6 → 3.2.7
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 +8 -0
- package/dist/types/findReplacePluginType.d.ts +4 -4
- package/dist/types/pm-plugins/actions.d.ts +15 -15
- package/dist/types/pm-plugins/commands-with-analytics.d.ts +2 -2
- package/dist/types/pm-plugins/utils/index.d.ts +4 -4
- package/dist/types/types/index.d.ts +28 -28
- package/dist/types/ui/Find.d.ts +24 -24
- package/dist/types/ui/FindReplace.d.ts +10 -10
- package/dist/types/ui/FindReplaceDropdown.d.ts +2 -2
- package/dist/types/ui/FindReplaceToolbarButton.d.ts +5 -5
- package/dist/types/ui/FindReplaceTooltipButton.d.ts +4 -4
- package/dist/types/ui/Replace.d.ts +17 -17
- package/dist/types/ui/ReplaceNext.d.ts +16 -16
- package/dist/types-ts4.5/findReplacePluginType.d.ts +4 -4
- package/dist/types-ts4.5/pm-plugins/actions.d.ts +15 -15
- package/dist/types-ts4.5/pm-plugins/commands-with-analytics.d.ts +2 -2
- package/dist/types-ts4.5/pm-plugins/utils/index.d.ts +4 -4
- package/dist/types-ts4.5/types/index.d.ts +28 -28
- package/dist/types-ts4.5/ui/Find.d.ts +24 -24
- package/dist/types-ts4.5/ui/FindReplace.d.ts +10 -10
- package/dist/types-ts4.5/ui/FindReplaceDropdown.d.ts +2 -2
- package/dist/types-ts4.5/ui/FindReplaceToolbarButton.d.ts +5 -5
- package/dist/types-ts4.5/ui/FindReplaceTooltipButton.d.ts +4 -4
- package/dist/types-ts4.5/ui/Replace.d.ts +17 -17
- package/dist/types-ts4.5/ui/ReplaceNext.d.ts +16 -16
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 3.2.7
|
|
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
|
+
|
|
3
11
|
## 3.2.6
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -18,11 +18,11 @@ export type FindReplacePluginDependencies = [
|
|
|
18
18
|
OptionalPlugin<ExpandPlugin>
|
|
19
19
|
];
|
|
20
20
|
export type FindReplacePlugin = NextEditorPlugin<'findReplace', {
|
|
21
|
-
pluginConfiguration: FindReplacePluginOptions;
|
|
22
|
-
sharedState: FindReplacePluginState | undefined;
|
|
23
|
-
dependencies: FindReplacePluginDependencies;
|
|
24
21
|
actions: {
|
|
25
|
-
registerToolbarButton: (params: FindReplaceToolbarButtonActionProps) => React.ReactNode;
|
|
26
22
|
activateFindReplace: (triggerMethod?: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.EXTERNAL) => boolean;
|
|
23
|
+
registerToolbarButton: (params: FindReplaceToolbarButtonActionProps) => React.ReactNode;
|
|
27
24
|
};
|
|
25
|
+
dependencies: FindReplacePluginDependencies;
|
|
26
|
+
pluginConfiguration: FindReplacePluginOptions;
|
|
27
|
+
sharedState: FindReplacePluginState | undefined;
|
|
28
28
|
}>;
|
|
@@ -13,40 +13,40 @@ export declare enum FindReplaceActionTypes {
|
|
|
13
13
|
TOGGLE_MATCH_CASE = "TOGGLE_MATCH_CASE"
|
|
14
14
|
}
|
|
15
15
|
export interface Activate {
|
|
16
|
-
type: FindReplaceActionTypes.ACTIVATE;
|
|
17
16
|
findText?: string;
|
|
18
|
-
matches?: Match[];
|
|
19
17
|
index?: number;
|
|
18
|
+
matches?: Match[];
|
|
19
|
+
type: FindReplaceActionTypes.ACTIVATE;
|
|
20
20
|
}
|
|
21
21
|
export interface Find {
|
|
22
|
-
type: FindReplaceActionTypes.FIND;
|
|
23
22
|
findText: string;
|
|
24
|
-
matches: Match[];
|
|
25
23
|
index: number;
|
|
24
|
+
matches: Match[];
|
|
25
|
+
type: FindReplaceActionTypes.FIND;
|
|
26
26
|
}
|
|
27
27
|
export interface FindNext {
|
|
28
|
-
type: FindReplaceActionTypes.FIND_NEXT;
|
|
29
|
-
index: number;
|
|
30
28
|
decorationSet: DecorationSet;
|
|
29
|
+
index: number;
|
|
30
|
+
type: FindReplaceActionTypes.FIND_NEXT;
|
|
31
31
|
}
|
|
32
32
|
export interface FindPrevious {
|
|
33
|
-
type: FindReplaceActionTypes.FIND_PREVIOUS;
|
|
34
|
-
index: number;
|
|
35
33
|
decorationSet: DecorationSet;
|
|
34
|
+
index: number;
|
|
35
|
+
type: FindReplaceActionTypes.FIND_PREVIOUS;
|
|
36
36
|
}
|
|
37
37
|
export interface Replace {
|
|
38
|
-
type: FindReplaceActionTypes.REPLACE;
|
|
39
|
-
replaceText: string;
|
|
40
38
|
decorationSet: DecorationSet;
|
|
41
|
-
matches: Match[];
|
|
42
39
|
index: number;
|
|
40
|
+
matches: Match[];
|
|
41
|
+
replaceText: string;
|
|
42
|
+
type: FindReplaceActionTypes.REPLACE;
|
|
43
43
|
}
|
|
44
44
|
export interface ReplaceAll {
|
|
45
|
-
type: FindReplaceActionTypes.REPLACE_ALL;
|
|
46
|
-
replaceText: string;
|
|
47
45
|
decorationSet: DecorationSet;
|
|
48
|
-
matches: Match[];
|
|
49
46
|
index: number;
|
|
47
|
+
matches: Match[];
|
|
48
|
+
replaceText: string;
|
|
49
|
+
type: FindReplaceActionTypes.REPLACE_ALL;
|
|
50
50
|
}
|
|
51
51
|
export interface Cancel {
|
|
52
52
|
type: FindReplaceActionTypes.CANCEL;
|
|
@@ -55,8 +55,8 @@ export interface Blur {
|
|
|
55
55
|
type: FindReplaceActionTypes.BLUR;
|
|
56
56
|
}
|
|
57
57
|
export interface UpdateDecorations {
|
|
58
|
-
type: FindReplaceActionTypes.UPDATE_DECORATIONS;
|
|
59
58
|
decorationSet: DecorationSet;
|
|
59
|
+
type: FindReplaceActionTypes.UPDATE_DECORATIONS;
|
|
60
60
|
}
|
|
61
61
|
export interface ToggleMatchCase {
|
|
62
62
|
type: FindReplaceActionTypes.TOGGLE_MATCH_CASE;
|
|
@@ -5,8 +5,8 @@ export declare const activateWithAnalytics: (editorAnalyticsAPI: EditorAnalytics
|
|
|
5
5
|
triggerMethod: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.EXTERNAL;
|
|
6
6
|
}) => Command;
|
|
7
7
|
export declare const findWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ editorView, containerElement, keyword, }: {
|
|
8
|
-
editorView: EditorView;
|
|
9
8
|
containerElement: HTMLElement | null;
|
|
9
|
+
editorView: EditorView;
|
|
10
10
|
keyword?: string;
|
|
11
11
|
}) => Command;
|
|
12
12
|
export declare const findNextWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, editorView: EditorView) => ({ triggerMethod, }: {
|
|
@@ -16,8 +16,8 @@ export declare const findPrevWithAnalytics: (editorAnalyticsAPI: EditorAnalytics
|
|
|
16
16
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
17
17
|
}) => Command;
|
|
18
18
|
export declare const replaceWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ triggerMethod, replaceText, }: {
|
|
19
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
20
19
|
replaceText: string;
|
|
20
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
21
21
|
}) => Command;
|
|
22
22
|
export declare const replaceAllWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ replaceText }: {
|
|
23
23
|
replaceText: string;
|
|
@@ -12,12 +12,12 @@ export declare function getSelectedText(selection: TextSelection): string;
|
|
|
12
12
|
export declare const createDecorations: (selectedIndex: number, matches: Match[]) => Decoration[];
|
|
13
13
|
export declare const createDecoration: (match: Match, isSelected?: Boolean) => Decoration;
|
|
14
14
|
type FindMatchesType = {
|
|
15
|
+
api?: ExtractInjectionAPI<FindReplacePlugin>;
|
|
15
16
|
content: PmNode | Fragment;
|
|
16
|
-
searchText: string;
|
|
17
|
-
shouldMatchCase: boolean;
|
|
18
17
|
contentIndex?: number;
|
|
19
18
|
getIntl?: () => IntlShape;
|
|
20
|
-
|
|
19
|
+
searchText: string;
|
|
20
|
+
shouldMatchCase: boolean;
|
|
21
21
|
};
|
|
22
22
|
export declare function findMatches({ content, searchText, shouldMatchCase, contentIndex, getIntl, api, }: FindMatchesType): Match[];
|
|
23
23
|
export declare function findClosestMatch(selectionPos: number, matches: Match[]): number;
|
|
@@ -53,7 +53,7 @@ export declare const findIndexBeforePosition: (items: Decoration[], position: nu
|
|
|
53
53
|
*/
|
|
54
54
|
export declare const isMatchAffectedByStep: (match: Match, step: Step & {
|
|
55
55
|
from: number;
|
|
56
|
-
to: number;
|
|
57
56
|
slice: Slice;
|
|
57
|
+
to: number;
|
|
58
58
|
}, tr: ReadonlyTransaction) => boolean;
|
|
59
59
|
export {};
|
|
@@ -4,65 +4,65 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
4
4
|
import type { DecorationSet, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { FindReplacePlugin } from '../findReplacePluginType';
|
|
6
6
|
export interface FindReplacePluginState {
|
|
7
|
+
/** api */
|
|
8
|
+
api?: ExtractInjectionAPI<FindReplacePlugin>;
|
|
9
|
+
/** Decorations for the search results */
|
|
10
|
+
decorationSet: DecorationSet;
|
|
11
|
+
/** Search keyword */
|
|
12
|
+
findText: string;
|
|
13
|
+
/** Intl object */
|
|
14
|
+
getIntl?: () => IntlShape;
|
|
15
|
+
/** Index of selected word in array of matches, this gets updated as user finds next/prev */
|
|
16
|
+
index: number;
|
|
7
17
|
/** Whether find/replace is active, i.e. displayed */
|
|
8
18
|
isActive: boolean;
|
|
19
|
+
/** Positions of find results */
|
|
20
|
+
matches: Match[];
|
|
21
|
+
/** Text to replace with */
|
|
22
|
+
replaceText: string;
|
|
9
23
|
/**
|
|
10
24
|
* Whether we should set focus into and select all text of find textfield
|
|
11
25
|
* This will be true if user highlights a word and hits cmd+f
|
|
12
26
|
*/
|
|
13
27
|
shouldFocus: boolean;
|
|
14
|
-
/** Search keyword */
|
|
15
|
-
findText: string;
|
|
16
|
-
/** Text to replace with */
|
|
17
|
-
replaceText: string;
|
|
18
|
-
/** Index of selected word in array of matches, this gets updated as user finds next/prev */
|
|
19
|
-
index: number;
|
|
20
|
-
/** Positions of find results */
|
|
21
|
-
matches: Match[];
|
|
22
|
-
/** Decorations for the search results */
|
|
23
|
-
decorationSet: DecorationSet;
|
|
24
28
|
/** Whether find/replace should match case when searching for results */
|
|
25
29
|
shouldMatchCase: boolean;
|
|
26
|
-
/** Intl object */
|
|
27
|
-
getIntl?: () => IntlShape;
|
|
28
|
-
/** api */
|
|
29
|
-
api?: ExtractInjectionAPI<FindReplacePlugin>;
|
|
30
30
|
}
|
|
31
31
|
export type FindReplaceToolbarButtonWithStateProps = {
|
|
32
|
+
api: ExtractInjectionAPI<FindReplacePlugin> | undefined;
|
|
33
|
+
containerElement: HTMLElement | null;
|
|
34
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
35
|
+
doesNotHaveButton?: boolean;
|
|
36
|
+
editorView: EditorView;
|
|
37
|
+
isButtonHidden?: boolean;
|
|
38
|
+
isToolbarReducedSpacing?: boolean;
|
|
32
39
|
popupsBoundariesElement?: HTMLElement;
|
|
33
40
|
popupsMountPoint?: HTMLElement;
|
|
34
41
|
popupsScrollableElement?: HTMLElement;
|
|
35
|
-
isToolbarReducedSpacing?: boolean;
|
|
36
|
-
editorView: EditorView;
|
|
37
|
-
containerElement: HTMLElement | null;
|
|
38
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
39
42
|
takeFullWidth?: boolean;
|
|
40
|
-
api: ExtractInjectionAPI<FindReplacePlugin> | undefined;
|
|
41
|
-
isButtonHidden?: boolean;
|
|
42
|
-
doesNotHaveButton?: boolean;
|
|
43
43
|
};
|
|
44
44
|
export type FindReplaceToolbarButtonActionProps = Omit<FindReplaceToolbarButtonWithStateProps, 'api'>;
|
|
45
45
|
export type Match = {
|
|
46
|
-
/** Start position */
|
|
47
|
-
start: number;
|
|
48
|
-
/** End position */
|
|
49
|
-
end: number;
|
|
50
46
|
/** Boolean for whether the match can be replaced */
|
|
51
47
|
canReplace?: boolean;
|
|
48
|
+
/** End position */
|
|
49
|
+
end: number;
|
|
52
50
|
/** Type of the node of the match */
|
|
53
51
|
nodeType?: string;
|
|
52
|
+
/** Start position */
|
|
53
|
+
start: number;
|
|
54
54
|
};
|
|
55
55
|
export type TextGrouping = {
|
|
56
|
-
/** The concatenated text across nodes */
|
|
57
|
-
text: string;
|
|
58
56
|
/** Start position */
|
|
59
57
|
pos: number;
|
|
58
|
+
/** The concatenated text across nodes */
|
|
59
|
+
text: string;
|
|
60
60
|
} | null;
|
|
61
61
|
export type FindReplaceOptions = {
|
|
62
62
|
allowMatchCase?: boolean;
|
|
63
63
|
};
|
|
64
64
|
export type MatchCaseProps = {
|
|
65
65
|
allowMatchCase?: boolean;
|
|
66
|
-
shouldMatchCase?: boolean;
|
|
67
66
|
onToggleMatchCase?: () => void;
|
|
67
|
+
shouldMatchCase?: boolean;
|
|
68
68
|
};
|
package/dist/types/ui/Find.d.ts
CHANGED
|
@@ -8,14 +8,18 @@ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
8
8
|
import type { MatchCaseProps } from '../types';
|
|
9
9
|
export declare const FIND_DEBOUNCE_MS = 100;
|
|
10
10
|
export type FindProps = {
|
|
11
|
-
findText?: string;
|
|
12
11
|
count: {
|
|
13
12
|
index: number;
|
|
14
13
|
total: number;
|
|
15
14
|
};
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
findText?: string;
|
|
16
|
+
findTyped: boolean;
|
|
17
|
+
onArrowDown: () => void;
|
|
18
|
+
onCancel: ({ triggerMethod, }: {
|
|
19
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
20
|
+
}) => void;
|
|
18
21
|
onFind: (findText?: string) => void;
|
|
22
|
+
onFindBlur: () => void;
|
|
19
23
|
onFindNext: ({ triggerMethod, }: {
|
|
20
24
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
21
25
|
}) => void;
|
|
@@ -23,22 +27,22 @@ export type FindProps = {
|
|
|
23
27
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
24
28
|
}) => void;
|
|
25
29
|
onFindTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
26
|
-
onCancel: ({ triggerMethod, }: {
|
|
27
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
28
|
-
}) => void;
|
|
29
|
-
onArrowDown: () => void;
|
|
30
30
|
setFindTyped: (value: boolean) => void;
|
|
31
|
-
|
|
31
|
+
shouldFocus: boolean;
|
|
32
32
|
} & MatchCaseProps;
|
|
33
33
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
34
|
-
findText?: string;
|
|
35
34
|
count: {
|
|
36
35
|
index: number;
|
|
37
36
|
total: number;
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
findText?: string;
|
|
39
|
+
findTyped: boolean;
|
|
40
|
+
onArrowDown: () => void;
|
|
41
|
+
onCancel: ({ triggerMethod, }: {
|
|
42
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
43
|
+
}) => void;
|
|
41
44
|
onFind: (findText?: string) => void;
|
|
45
|
+
onFindBlur: () => void;
|
|
42
46
|
onFindNext: ({ triggerMethod, }: {
|
|
43
47
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
44
48
|
}) => void;
|
|
@@ -46,22 +50,22 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
46
50
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
47
51
|
}) => void;
|
|
48
52
|
onFindTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
49
|
-
onCancel: ({ triggerMethod, }: {
|
|
50
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
51
|
-
}) => void;
|
|
52
|
-
onArrowDown: () => void;
|
|
53
53
|
setFindTyped: (value: boolean) => void;
|
|
54
|
-
|
|
54
|
+
shouldFocus: boolean;
|
|
55
55
|
} & MatchCaseProps & WrappedComponentProps>> & {
|
|
56
56
|
WrappedComponent: React.ComponentType<{
|
|
57
|
-
findText?: string;
|
|
58
57
|
count: {
|
|
59
58
|
index: number;
|
|
60
59
|
total: number;
|
|
61
60
|
};
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
findText?: string;
|
|
62
|
+
findTyped: boolean;
|
|
63
|
+
onArrowDown: () => void;
|
|
64
|
+
onCancel: ({ triggerMethod, }: {
|
|
65
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
66
|
+
}) => void;
|
|
64
67
|
onFind: (findText?: string) => void;
|
|
68
|
+
onFindBlur: () => void;
|
|
65
69
|
onFindNext: ({ triggerMethod, }: {
|
|
66
70
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
67
71
|
}) => void;
|
|
@@ -69,12 +73,8 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
69
73
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
70
74
|
}) => void;
|
|
71
75
|
onFindTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
72
|
-
onCancel: ({ triggerMethod, }: {
|
|
73
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
74
|
-
}) => void;
|
|
75
|
-
onArrowDown: () => void;
|
|
76
76
|
setFindTyped: (value: boolean) => void;
|
|
77
|
-
|
|
77
|
+
shouldFocus: boolean;
|
|
78
78
|
} & MatchCaseProps & WrappedComponentProps>;
|
|
79
79
|
};
|
|
80
80
|
export default _default;
|
|
@@ -7,17 +7,20 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { MatchCaseProps } from '../types';
|
|
9
9
|
export type FindReplaceProps = {
|
|
10
|
-
findText?: string;
|
|
11
|
-
replaceText?: string;
|
|
12
10
|
count: {
|
|
13
11
|
index: number;
|
|
14
12
|
total: number;
|
|
15
13
|
totalReplaceable?: number;
|
|
16
14
|
};
|
|
15
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
16
|
+
findText?: string;
|
|
17
|
+
focusToolbarButton?: () => void;
|
|
17
18
|
isReplaceable?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
onCancel: ({ triggerMethod, }: {
|
|
20
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
21
|
+
}) => void;
|
|
20
22
|
onFind: (findText?: string) => void;
|
|
23
|
+
onFindBlur: () => void;
|
|
21
24
|
onFindNext: ({ triggerMethod, }: {
|
|
22
25
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
23
26
|
}) => void;
|
|
@@ -25,17 +28,14 @@ export type FindReplaceProps = {
|
|
|
25
28
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
26
29
|
}) => void;
|
|
27
30
|
onReplace: ({ triggerMethod, replaceText, }: {
|
|
28
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
29
31
|
replaceText: string;
|
|
32
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
30
33
|
}) => void;
|
|
31
34
|
onReplaceAll: ({ replaceText }: {
|
|
32
35
|
replaceText: string;
|
|
33
36
|
}) => void;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}) => void;
|
|
37
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
38
|
-
focusToolbarButton?: () => void;
|
|
37
|
+
replaceText?: string;
|
|
38
|
+
shouldFocus: boolean;
|
|
39
39
|
} & MatchCaseProps;
|
|
40
40
|
declare class FindReplace extends React.PureComponent<FindReplaceProps> {
|
|
41
41
|
private findTextfield;
|
|
@@ -3,13 +3,13 @@ import { type WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { FindReplaceProps } from './FindReplace';
|
|
5
5
|
export interface FindReplaceDropdownProps extends Omit<FindReplaceProps, 'count'> {
|
|
6
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
6
7
|
index: number;
|
|
7
|
-
numMatches: number;
|
|
8
8
|
isActive: boolean;
|
|
9
9
|
isReplaceable?: boolean;
|
|
10
|
+
numMatches: number;
|
|
10
11
|
numReplaceable?: number;
|
|
11
12
|
popupsMountPoint?: HTMLElement;
|
|
12
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<FindReplaceDropdownProps & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<FindReplaceDropdownProps & WrappedComponentProps>;
|
|
@@ -7,18 +7,18 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { FindReplaceProps } from './FindReplace';
|
|
9
9
|
export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
|
|
10
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
10
11
|
index: number;
|
|
11
|
-
numMatches: number;
|
|
12
12
|
isActive: boolean;
|
|
13
|
+
isButtonHidden?: boolean;
|
|
14
|
+
isReducedSpacing?: boolean;
|
|
15
|
+
numMatches: number;
|
|
13
16
|
numReplaceable?: number;
|
|
14
17
|
onActivate: () => void;
|
|
15
|
-
isReducedSpacing?: boolean;
|
|
16
|
-
popupsMountPoint?: HTMLElement;
|
|
17
18
|
popupsBoundariesElement?: HTMLElement;
|
|
19
|
+
popupsMountPoint?: HTMLElement;
|
|
18
20
|
popupsScrollableElement?: HTMLElement;
|
|
19
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
20
21
|
takeFullWidth: boolean;
|
|
21
|
-
isButtonHidden?: boolean;
|
|
22
22
|
}
|
|
23
23
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<FindReplaceToolbarButtonProps & WrappedComponentProps>> & {
|
|
24
24
|
WrappedComponent: React.ComponentType<FindReplaceToolbarButtonProps & WrappedComponentProps>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
4
|
+
appearance?: 'default' | 'primary' | 'subtle';
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
icon: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
6
7
|
iconLabel: string;
|
|
7
8
|
iconSize?: 'small' | undefined;
|
|
9
|
+
isPressed?: boolean;
|
|
8
10
|
keymapDescription: string;
|
|
9
11
|
onClick: (ref: React.RefObject<HTMLButtonElement>) => void;
|
|
10
|
-
|
|
11
|
-
isPressed?: boolean;
|
|
12
|
-
appearance?: 'default' | 'primary' | 'subtle';
|
|
12
|
+
title: string;
|
|
13
13
|
}
|
|
14
14
|
export declare class FindReplaceTooltipButton extends React.PureComponent<Props> {
|
|
15
15
|
private buttonRef;
|
|
@@ -8,41 +8,41 @@ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
8
8
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
export type ReplaceProps = {
|
|
10
10
|
canReplace: boolean;
|
|
11
|
-
replaceText?: string;
|
|
12
|
-
onReplace: ({ triggerMethod, replaceText, }: {
|
|
13
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
14
|
-
replaceText: string;
|
|
15
|
-
}) => void;
|
|
16
|
-
onReplaceAll: ({ replaceText }: {
|
|
17
|
-
replaceText: string;
|
|
18
|
-
}) => void;
|
|
19
|
-
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
20
|
-
onArrowUp: () => void;
|
|
21
|
-
onCancel: ({ triggerMethod, }: {
|
|
22
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
23
|
-
}) => void;
|
|
24
11
|
count: {
|
|
25
12
|
index: number;
|
|
26
13
|
total: number;
|
|
27
14
|
totalReplaceable?: number;
|
|
28
15
|
};
|
|
16
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
17
|
+
findTyped: boolean;
|
|
18
|
+
focusToolbarButton: () => void;
|
|
19
|
+
onArrowUp: () => void;
|
|
20
|
+
onCancel: ({ triggerMethod, }: {
|
|
21
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
22
|
+
}) => void;
|
|
29
23
|
onFindNext: ({ triggerMethod, }: {
|
|
30
24
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
31
25
|
}) => void;
|
|
32
26
|
onFindPrev: ({ triggerMethod, }: {
|
|
33
27
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
34
28
|
}) => void;
|
|
35
|
-
|
|
29
|
+
onReplace: ({ triggerMethod, replaceText, }: {
|
|
30
|
+
replaceText: string;
|
|
31
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
32
|
+
}) => void;
|
|
33
|
+
onReplaceAll: ({ replaceText }: {
|
|
34
|
+
replaceText: string;
|
|
35
|
+
}) => void;
|
|
36
|
+
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
37
|
+
replaceText?: string;
|
|
36
38
|
setFindTyped: (value: boolean) => void;
|
|
37
|
-
findTyped: boolean;
|
|
38
|
-
focusToolbarButton: () => void;
|
|
39
39
|
};
|
|
40
40
|
export type ReplaceState = {
|
|
41
|
-
replaceText: string;
|
|
42
41
|
fakeSuccessReplacementMessageUpdate: boolean;
|
|
43
42
|
isComposing: boolean;
|
|
44
43
|
isHelperMessageVisible: boolean;
|
|
45
44
|
replaceCount: number;
|
|
45
|
+
replaceText: string;
|
|
46
46
|
};
|
|
47
47
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ReplaceProps & WrappedComponentProps>> & {
|
|
48
48
|
WrappedComponent: React.ComponentType<ReplaceProps & WrappedComponentProps>;
|
|
@@ -4,34 +4,34 @@ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
export type ReplaceProps = {
|
|
6
6
|
canReplace: boolean;
|
|
7
|
-
replaceText?: string;
|
|
8
|
-
onReplace: ({ triggerMethod, replaceText, }: {
|
|
9
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
10
|
-
replaceText: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
onReplaceAll: ({ replaceText }: {
|
|
13
|
-
replaceText: string;
|
|
14
|
-
}) => void;
|
|
15
|
-
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
16
|
-
onArrowUp: () => void;
|
|
17
|
-
onCancel: ({ triggerMethod, }: {
|
|
18
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
19
|
-
}) => void;
|
|
20
7
|
count: {
|
|
21
8
|
index: number;
|
|
22
9
|
total: number;
|
|
23
10
|
totalReplaceable?: number;
|
|
24
11
|
};
|
|
12
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
13
|
+
findTyped: boolean;
|
|
14
|
+
focusToolbarButton: () => void;
|
|
15
|
+
onArrowUp: () => void;
|
|
16
|
+
onCancel: ({ triggerMethod, }: {
|
|
17
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
18
|
+
}) => void;
|
|
25
19
|
onFindNext: ({ triggerMethod, }: {
|
|
26
20
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
27
21
|
}) => void;
|
|
28
22
|
onFindPrev: ({ triggerMethod, }: {
|
|
29
23
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
30
24
|
}) => void;
|
|
31
|
-
|
|
25
|
+
onReplace: ({ triggerMethod, replaceText, }: {
|
|
26
|
+
replaceText: string;
|
|
27
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
28
|
+
}) => void;
|
|
29
|
+
onReplaceAll: ({ replaceText }: {
|
|
30
|
+
replaceText: string;
|
|
31
|
+
}) => void;
|
|
32
|
+
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
33
|
+
replaceText?: string;
|
|
32
34
|
setFindTyped: (value: boolean) => void;
|
|
33
|
-
findTyped: boolean;
|
|
34
|
-
focusToolbarButton: () => void;
|
|
35
35
|
};
|
|
36
36
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ReplaceProps & WrappedComponentProps>> & {
|
|
37
37
|
WrappedComponent: React.ComponentType<ReplaceProps & WrappedComponentProps>;
|
|
@@ -18,11 +18,11 @@ export type FindReplacePluginDependencies = [
|
|
|
18
18
|
OptionalPlugin<ExpandPlugin>
|
|
19
19
|
];
|
|
20
20
|
export type FindReplacePlugin = NextEditorPlugin<'findReplace', {
|
|
21
|
-
pluginConfiguration: FindReplacePluginOptions;
|
|
22
|
-
sharedState: FindReplacePluginState | undefined;
|
|
23
|
-
dependencies: FindReplacePluginDependencies;
|
|
24
21
|
actions: {
|
|
25
|
-
registerToolbarButton: (params: FindReplaceToolbarButtonActionProps) => React.ReactNode;
|
|
26
22
|
activateFindReplace: (triggerMethod?: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.EXTERNAL) => boolean;
|
|
23
|
+
registerToolbarButton: (params: FindReplaceToolbarButtonActionProps) => React.ReactNode;
|
|
27
24
|
};
|
|
25
|
+
dependencies: FindReplacePluginDependencies;
|
|
26
|
+
pluginConfiguration: FindReplacePluginOptions;
|
|
27
|
+
sharedState: FindReplacePluginState | undefined;
|
|
28
28
|
}>;
|
|
@@ -13,40 +13,40 @@ export declare enum FindReplaceActionTypes {
|
|
|
13
13
|
TOGGLE_MATCH_CASE = "TOGGLE_MATCH_CASE"
|
|
14
14
|
}
|
|
15
15
|
export interface Activate {
|
|
16
|
-
type: FindReplaceActionTypes.ACTIVATE;
|
|
17
16
|
findText?: string;
|
|
18
|
-
matches?: Match[];
|
|
19
17
|
index?: number;
|
|
18
|
+
matches?: Match[];
|
|
19
|
+
type: FindReplaceActionTypes.ACTIVATE;
|
|
20
20
|
}
|
|
21
21
|
export interface Find {
|
|
22
|
-
type: FindReplaceActionTypes.FIND;
|
|
23
22
|
findText: string;
|
|
24
|
-
matches: Match[];
|
|
25
23
|
index: number;
|
|
24
|
+
matches: Match[];
|
|
25
|
+
type: FindReplaceActionTypes.FIND;
|
|
26
26
|
}
|
|
27
27
|
export interface FindNext {
|
|
28
|
-
type: FindReplaceActionTypes.FIND_NEXT;
|
|
29
|
-
index: number;
|
|
30
28
|
decorationSet: DecorationSet;
|
|
29
|
+
index: number;
|
|
30
|
+
type: FindReplaceActionTypes.FIND_NEXT;
|
|
31
31
|
}
|
|
32
32
|
export interface FindPrevious {
|
|
33
|
-
type: FindReplaceActionTypes.FIND_PREVIOUS;
|
|
34
|
-
index: number;
|
|
35
33
|
decorationSet: DecorationSet;
|
|
34
|
+
index: number;
|
|
35
|
+
type: FindReplaceActionTypes.FIND_PREVIOUS;
|
|
36
36
|
}
|
|
37
37
|
export interface Replace {
|
|
38
|
-
type: FindReplaceActionTypes.REPLACE;
|
|
39
|
-
replaceText: string;
|
|
40
38
|
decorationSet: DecorationSet;
|
|
41
|
-
matches: Match[];
|
|
42
39
|
index: number;
|
|
40
|
+
matches: Match[];
|
|
41
|
+
replaceText: string;
|
|
42
|
+
type: FindReplaceActionTypes.REPLACE;
|
|
43
43
|
}
|
|
44
44
|
export interface ReplaceAll {
|
|
45
|
-
type: FindReplaceActionTypes.REPLACE_ALL;
|
|
46
|
-
replaceText: string;
|
|
47
45
|
decorationSet: DecorationSet;
|
|
48
|
-
matches: Match[];
|
|
49
46
|
index: number;
|
|
47
|
+
matches: Match[];
|
|
48
|
+
replaceText: string;
|
|
49
|
+
type: FindReplaceActionTypes.REPLACE_ALL;
|
|
50
50
|
}
|
|
51
51
|
export interface Cancel {
|
|
52
52
|
type: FindReplaceActionTypes.CANCEL;
|
|
@@ -55,8 +55,8 @@ export interface Blur {
|
|
|
55
55
|
type: FindReplaceActionTypes.BLUR;
|
|
56
56
|
}
|
|
57
57
|
export interface UpdateDecorations {
|
|
58
|
-
type: FindReplaceActionTypes.UPDATE_DECORATIONS;
|
|
59
58
|
decorationSet: DecorationSet;
|
|
59
|
+
type: FindReplaceActionTypes.UPDATE_DECORATIONS;
|
|
60
60
|
}
|
|
61
61
|
export interface ToggleMatchCase {
|
|
62
62
|
type: FindReplaceActionTypes.TOGGLE_MATCH_CASE;
|
|
@@ -5,8 +5,8 @@ export declare const activateWithAnalytics: (editorAnalyticsAPI: EditorAnalytics
|
|
|
5
5
|
triggerMethod: TRIGGER_METHOD.SHORTCUT | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.EXTERNAL;
|
|
6
6
|
}) => Command;
|
|
7
7
|
export declare const findWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ editorView, containerElement, keyword, }: {
|
|
8
|
-
editorView: EditorView;
|
|
9
8
|
containerElement: HTMLElement | null;
|
|
9
|
+
editorView: EditorView;
|
|
10
10
|
keyword?: string;
|
|
11
11
|
}) => Command;
|
|
12
12
|
export declare const findNextWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined, editorView: EditorView) => ({ triggerMethod, }: {
|
|
@@ -16,8 +16,8 @@ export declare const findPrevWithAnalytics: (editorAnalyticsAPI: EditorAnalytics
|
|
|
16
16
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
17
17
|
}) => Command;
|
|
18
18
|
export declare const replaceWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ triggerMethod, replaceText, }: {
|
|
19
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
20
19
|
replaceText: string;
|
|
20
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
21
21
|
}) => Command;
|
|
22
22
|
export declare const replaceAllWithAnalytics: (editorAnalyticsAPI: EditorAnalyticsAPI | undefined) => ({ replaceText }: {
|
|
23
23
|
replaceText: string;
|
|
@@ -12,12 +12,12 @@ export declare function getSelectedText(selection: TextSelection): string;
|
|
|
12
12
|
export declare const createDecorations: (selectedIndex: number, matches: Match[]) => Decoration[];
|
|
13
13
|
export declare const createDecoration: (match: Match, isSelected?: Boolean) => Decoration;
|
|
14
14
|
type FindMatchesType = {
|
|
15
|
+
api?: ExtractInjectionAPI<FindReplacePlugin>;
|
|
15
16
|
content: PmNode | Fragment;
|
|
16
|
-
searchText: string;
|
|
17
|
-
shouldMatchCase: boolean;
|
|
18
17
|
contentIndex?: number;
|
|
19
18
|
getIntl?: () => IntlShape;
|
|
20
|
-
|
|
19
|
+
searchText: string;
|
|
20
|
+
shouldMatchCase: boolean;
|
|
21
21
|
};
|
|
22
22
|
export declare function findMatches({ content, searchText, shouldMatchCase, contentIndex, getIntl, api, }: FindMatchesType): Match[];
|
|
23
23
|
export declare function findClosestMatch(selectionPos: number, matches: Match[]): number;
|
|
@@ -53,7 +53,7 @@ export declare const findIndexBeforePosition: (items: Decoration[], position: nu
|
|
|
53
53
|
*/
|
|
54
54
|
export declare const isMatchAffectedByStep: (match: Match, step: Step & {
|
|
55
55
|
from: number;
|
|
56
|
-
to: number;
|
|
57
56
|
slice: Slice;
|
|
57
|
+
to: number;
|
|
58
58
|
}, tr: ReadonlyTransaction) => boolean;
|
|
59
59
|
export {};
|
|
@@ -4,65 +4,65 @@ import type { ExtractInjectionAPI } from '@atlaskit/editor-common/types';
|
|
|
4
4
|
import type { DecorationSet, EditorView } from '@atlaskit/editor-prosemirror/view';
|
|
5
5
|
import type { FindReplacePlugin } from '../findReplacePluginType';
|
|
6
6
|
export interface FindReplacePluginState {
|
|
7
|
+
/** api */
|
|
8
|
+
api?: ExtractInjectionAPI<FindReplacePlugin>;
|
|
9
|
+
/** Decorations for the search results */
|
|
10
|
+
decorationSet: DecorationSet;
|
|
11
|
+
/** Search keyword */
|
|
12
|
+
findText: string;
|
|
13
|
+
/** Intl object */
|
|
14
|
+
getIntl?: () => IntlShape;
|
|
15
|
+
/** Index of selected word in array of matches, this gets updated as user finds next/prev */
|
|
16
|
+
index: number;
|
|
7
17
|
/** Whether find/replace is active, i.e. displayed */
|
|
8
18
|
isActive: boolean;
|
|
19
|
+
/** Positions of find results */
|
|
20
|
+
matches: Match[];
|
|
21
|
+
/** Text to replace with */
|
|
22
|
+
replaceText: string;
|
|
9
23
|
/**
|
|
10
24
|
* Whether we should set focus into and select all text of find textfield
|
|
11
25
|
* This will be true if user highlights a word and hits cmd+f
|
|
12
26
|
*/
|
|
13
27
|
shouldFocus: boolean;
|
|
14
|
-
/** Search keyword */
|
|
15
|
-
findText: string;
|
|
16
|
-
/** Text to replace with */
|
|
17
|
-
replaceText: string;
|
|
18
|
-
/** Index of selected word in array of matches, this gets updated as user finds next/prev */
|
|
19
|
-
index: number;
|
|
20
|
-
/** Positions of find results */
|
|
21
|
-
matches: Match[];
|
|
22
|
-
/** Decorations for the search results */
|
|
23
|
-
decorationSet: DecorationSet;
|
|
24
28
|
/** Whether find/replace should match case when searching for results */
|
|
25
29
|
shouldMatchCase: boolean;
|
|
26
|
-
/** Intl object */
|
|
27
|
-
getIntl?: () => IntlShape;
|
|
28
|
-
/** api */
|
|
29
|
-
api?: ExtractInjectionAPI<FindReplacePlugin>;
|
|
30
30
|
}
|
|
31
31
|
export type FindReplaceToolbarButtonWithStateProps = {
|
|
32
|
+
api: ExtractInjectionAPI<FindReplacePlugin> | undefined;
|
|
33
|
+
containerElement: HTMLElement | null;
|
|
34
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
35
|
+
doesNotHaveButton?: boolean;
|
|
36
|
+
editorView: EditorView;
|
|
37
|
+
isButtonHidden?: boolean;
|
|
38
|
+
isToolbarReducedSpacing?: boolean;
|
|
32
39
|
popupsBoundariesElement?: HTMLElement;
|
|
33
40
|
popupsMountPoint?: HTMLElement;
|
|
34
41
|
popupsScrollableElement?: HTMLElement;
|
|
35
|
-
isToolbarReducedSpacing?: boolean;
|
|
36
|
-
editorView: EditorView;
|
|
37
|
-
containerElement: HTMLElement | null;
|
|
38
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
39
42
|
takeFullWidth?: boolean;
|
|
40
|
-
api: ExtractInjectionAPI<FindReplacePlugin> | undefined;
|
|
41
|
-
isButtonHidden?: boolean;
|
|
42
|
-
doesNotHaveButton?: boolean;
|
|
43
43
|
};
|
|
44
44
|
export type FindReplaceToolbarButtonActionProps = Omit<FindReplaceToolbarButtonWithStateProps, 'api'>;
|
|
45
45
|
export type Match = {
|
|
46
|
-
/** Start position */
|
|
47
|
-
start: number;
|
|
48
|
-
/** End position */
|
|
49
|
-
end: number;
|
|
50
46
|
/** Boolean for whether the match can be replaced */
|
|
51
47
|
canReplace?: boolean;
|
|
48
|
+
/** End position */
|
|
49
|
+
end: number;
|
|
52
50
|
/** Type of the node of the match */
|
|
53
51
|
nodeType?: string;
|
|
52
|
+
/** Start position */
|
|
53
|
+
start: number;
|
|
54
54
|
};
|
|
55
55
|
export type TextGrouping = {
|
|
56
|
-
/** The concatenated text across nodes */
|
|
57
|
-
text: string;
|
|
58
56
|
/** Start position */
|
|
59
57
|
pos: number;
|
|
58
|
+
/** The concatenated text across nodes */
|
|
59
|
+
text: string;
|
|
60
60
|
} | null;
|
|
61
61
|
export type FindReplaceOptions = {
|
|
62
62
|
allowMatchCase?: boolean;
|
|
63
63
|
};
|
|
64
64
|
export type MatchCaseProps = {
|
|
65
65
|
allowMatchCase?: boolean;
|
|
66
|
-
shouldMatchCase?: boolean;
|
|
67
66
|
onToggleMatchCase?: () => void;
|
|
67
|
+
shouldMatchCase?: boolean;
|
|
68
68
|
};
|
|
@@ -8,14 +8,18 @@ import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
|
8
8
|
import type { MatchCaseProps } from '../types';
|
|
9
9
|
export declare const FIND_DEBOUNCE_MS = 100;
|
|
10
10
|
export type FindProps = {
|
|
11
|
-
findText?: string;
|
|
12
11
|
count: {
|
|
13
12
|
index: number;
|
|
14
13
|
total: number;
|
|
15
14
|
};
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
findText?: string;
|
|
16
|
+
findTyped: boolean;
|
|
17
|
+
onArrowDown: () => void;
|
|
18
|
+
onCancel: ({ triggerMethod, }: {
|
|
19
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
20
|
+
}) => void;
|
|
18
21
|
onFind: (findText?: string) => void;
|
|
22
|
+
onFindBlur: () => void;
|
|
19
23
|
onFindNext: ({ triggerMethod, }: {
|
|
20
24
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
21
25
|
}) => void;
|
|
@@ -23,22 +27,22 @@ export type FindProps = {
|
|
|
23
27
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
24
28
|
}) => void;
|
|
25
29
|
onFindTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
26
|
-
onCancel: ({ triggerMethod, }: {
|
|
27
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
28
|
-
}) => void;
|
|
29
|
-
onArrowDown: () => void;
|
|
30
30
|
setFindTyped: (value: boolean) => void;
|
|
31
|
-
|
|
31
|
+
shouldFocus: boolean;
|
|
32
32
|
} & MatchCaseProps;
|
|
33
33
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
34
|
-
findText?: string;
|
|
35
34
|
count: {
|
|
36
35
|
index: number;
|
|
37
36
|
total: number;
|
|
38
37
|
};
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
findText?: string;
|
|
39
|
+
findTyped: boolean;
|
|
40
|
+
onArrowDown: () => void;
|
|
41
|
+
onCancel: ({ triggerMethod, }: {
|
|
42
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
43
|
+
}) => void;
|
|
41
44
|
onFind: (findText?: string) => void;
|
|
45
|
+
onFindBlur: () => void;
|
|
42
46
|
onFindNext: ({ triggerMethod, }: {
|
|
43
47
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
44
48
|
}) => void;
|
|
@@ -46,22 +50,22 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
46
50
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
47
51
|
}) => void;
|
|
48
52
|
onFindTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
49
|
-
onCancel: ({ triggerMethod, }: {
|
|
50
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
51
|
-
}) => void;
|
|
52
|
-
onArrowDown: () => void;
|
|
53
53
|
setFindTyped: (value: boolean) => void;
|
|
54
|
-
|
|
54
|
+
shouldFocus: boolean;
|
|
55
55
|
} & MatchCaseProps & WrappedComponentProps>> & {
|
|
56
56
|
WrappedComponent: React.ComponentType<{
|
|
57
|
-
findText?: string;
|
|
58
57
|
count: {
|
|
59
58
|
index: number;
|
|
60
59
|
total: number;
|
|
61
60
|
};
|
|
62
|
-
|
|
63
|
-
|
|
61
|
+
findText?: string;
|
|
62
|
+
findTyped: boolean;
|
|
63
|
+
onArrowDown: () => void;
|
|
64
|
+
onCancel: ({ triggerMethod, }: {
|
|
65
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
66
|
+
}) => void;
|
|
64
67
|
onFind: (findText?: string) => void;
|
|
68
|
+
onFindBlur: () => void;
|
|
65
69
|
onFindNext: ({ triggerMethod, }: {
|
|
66
70
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
67
71
|
}) => void;
|
|
@@ -69,12 +73,8 @@ declare const _default: React.FC<import("react-intl-next").WithIntlProps<{
|
|
|
69
73
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
70
74
|
}) => void;
|
|
71
75
|
onFindTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
72
|
-
onCancel: ({ triggerMethod, }: {
|
|
73
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
74
|
-
}) => void;
|
|
75
|
-
onArrowDown: () => void;
|
|
76
76
|
setFindTyped: (value: boolean) => void;
|
|
77
|
-
|
|
77
|
+
shouldFocus: boolean;
|
|
78
78
|
} & MatchCaseProps & WrappedComponentProps>;
|
|
79
79
|
};
|
|
80
80
|
export default _default;
|
|
@@ -7,17 +7,20 @@ import { jsx } from '@emotion/react';
|
|
|
7
7
|
import type { DispatchAnalyticsEvent, TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { MatchCaseProps } from '../types';
|
|
9
9
|
export type FindReplaceProps = {
|
|
10
|
-
findText?: string;
|
|
11
|
-
replaceText?: string;
|
|
12
10
|
count: {
|
|
13
11
|
index: number;
|
|
14
12
|
total: number;
|
|
15
13
|
totalReplaceable?: number;
|
|
16
14
|
};
|
|
15
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
16
|
+
findText?: string;
|
|
17
|
+
focusToolbarButton?: () => void;
|
|
17
18
|
isReplaceable?: boolean;
|
|
18
|
-
|
|
19
|
-
|
|
19
|
+
onCancel: ({ triggerMethod, }: {
|
|
20
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
21
|
+
}) => void;
|
|
20
22
|
onFind: (findText?: string) => void;
|
|
23
|
+
onFindBlur: () => void;
|
|
21
24
|
onFindNext: ({ triggerMethod, }: {
|
|
22
25
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
23
26
|
}) => void;
|
|
@@ -25,17 +28,14 @@ export type FindReplaceProps = {
|
|
|
25
28
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
26
29
|
}) => void;
|
|
27
30
|
onReplace: ({ triggerMethod, replaceText, }: {
|
|
28
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
29
31
|
replaceText: string;
|
|
32
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
30
33
|
}) => void;
|
|
31
34
|
onReplaceAll: ({ replaceText }: {
|
|
32
35
|
replaceText: string;
|
|
33
36
|
}) => void;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}) => void;
|
|
37
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
38
|
-
focusToolbarButton?: () => void;
|
|
37
|
+
replaceText?: string;
|
|
38
|
+
shouldFocus: boolean;
|
|
39
39
|
} & MatchCaseProps;
|
|
40
40
|
declare class FindReplace extends React.PureComponent<FindReplaceProps> {
|
|
41
41
|
private findTextfield;
|
|
@@ -3,13 +3,13 @@ import { type WrappedComponentProps } from 'react-intl-next';
|
|
|
3
3
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
4
4
|
import type { FindReplaceProps } from './FindReplace';
|
|
5
5
|
export interface FindReplaceDropdownProps extends Omit<FindReplaceProps, 'count'> {
|
|
6
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
6
7
|
index: number;
|
|
7
|
-
numMatches: number;
|
|
8
8
|
isActive: boolean;
|
|
9
9
|
isReplaceable?: boolean;
|
|
10
|
+
numMatches: number;
|
|
10
11
|
numReplaceable?: number;
|
|
11
12
|
popupsMountPoint?: HTMLElement;
|
|
12
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
13
13
|
}
|
|
14
14
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<FindReplaceDropdownProps & WrappedComponentProps>> & {
|
|
15
15
|
WrappedComponent: React.ComponentType<FindReplaceDropdownProps & WrappedComponentProps>;
|
|
@@ -7,18 +7,18 @@ import type { WrappedComponentProps } from 'react-intl-next';
|
|
|
7
7
|
import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
8
8
|
import type { FindReplaceProps } from './FindReplace';
|
|
9
9
|
export interface FindReplaceToolbarButtonProps extends Omit<FindReplaceProps, 'count'> {
|
|
10
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
10
11
|
index: number;
|
|
11
|
-
numMatches: number;
|
|
12
12
|
isActive: boolean;
|
|
13
|
+
isButtonHidden?: boolean;
|
|
14
|
+
isReducedSpacing?: boolean;
|
|
15
|
+
numMatches: number;
|
|
13
16
|
numReplaceable?: number;
|
|
14
17
|
onActivate: () => void;
|
|
15
|
-
isReducedSpacing?: boolean;
|
|
16
|
-
popupsMountPoint?: HTMLElement;
|
|
17
18
|
popupsBoundariesElement?: HTMLElement;
|
|
19
|
+
popupsMountPoint?: HTMLElement;
|
|
18
20
|
popupsScrollableElement?: HTMLElement;
|
|
19
|
-
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
20
21
|
takeFullWidth: boolean;
|
|
21
|
-
isButtonHidden?: boolean;
|
|
22
22
|
}
|
|
23
23
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<FindReplaceToolbarButtonProps & WrappedComponentProps>> & {
|
|
24
24
|
WrappedComponent: React.ComponentType<FindReplaceToolbarButtonProps & WrappedComponentProps>;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { IconProps } from '@atlaskit/icon/types';
|
|
3
3
|
interface Props {
|
|
4
|
-
|
|
4
|
+
appearance?: 'default' | 'primary' | 'subtle';
|
|
5
|
+
disabled?: boolean;
|
|
5
6
|
icon: React.ComponentType<React.PropsWithChildren<IconProps>>;
|
|
6
7
|
iconLabel: string;
|
|
7
8
|
iconSize?: 'small' | undefined;
|
|
9
|
+
isPressed?: boolean;
|
|
8
10
|
keymapDescription: string;
|
|
9
11
|
onClick: (ref: React.RefObject<HTMLButtonElement>) => void;
|
|
10
|
-
|
|
11
|
-
isPressed?: boolean;
|
|
12
|
-
appearance?: 'default' | 'primary' | 'subtle';
|
|
12
|
+
title: string;
|
|
13
13
|
}
|
|
14
14
|
export declare class FindReplaceTooltipButton extends React.PureComponent<Props> {
|
|
15
15
|
private buttonRef;
|
|
@@ -8,41 +8,41 @@ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
8
8
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
9
9
|
export type ReplaceProps = {
|
|
10
10
|
canReplace: boolean;
|
|
11
|
-
replaceText?: string;
|
|
12
|
-
onReplace: ({ triggerMethod, replaceText, }: {
|
|
13
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
14
|
-
replaceText: string;
|
|
15
|
-
}) => void;
|
|
16
|
-
onReplaceAll: ({ replaceText }: {
|
|
17
|
-
replaceText: string;
|
|
18
|
-
}) => void;
|
|
19
|
-
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
20
|
-
onArrowUp: () => void;
|
|
21
|
-
onCancel: ({ triggerMethod, }: {
|
|
22
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
23
|
-
}) => void;
|
|
24
11
|
count: {
|
|
25
12
|
index: number;
|
|
26
13
|
total: number;
|
|
27
14
|
totalReplaceable?: number;
|
|
28
15
|
};
|
|
16
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
17
|
+
findTyped: boolean;
|
|
18
|
+
focusToolbarButton: () => void;
|
|
19
|
+
onArrowUp: () => void;
|
|
20
|
+
onCancel: ({ triggerMethod, }: {
|
|
21
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
22
|
+
}) => void;
|
|
29
23
|
onFindNext: ({ triggerMethod, }: {
|
|
30
24
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
31
25
|
}) => void;
|
|
32
26
|
onFindPrev: ({ triggerMethod, }: {
|
|
33
27
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
34
28
|
}) => void;
|
|
35
|
-
|
|
29
|
+
onReplace: ({ triggerMethod, replaceText, }: {
|
|
30
|
+
replaceText: string;
|
|
31
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
32
|
+
}) => void;
|
|
33
|
+
onReplaceAll: ({ replaceText }: {
|
|
34
|
+
replaceText: string;
|
|
35
|
+
}) => void;
|
|
36
|
+
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
37
|
+
replaceText?: string;
|
|
36
38
|
setFindTyped: (value: boolean) => void;
|
|
37
|
-
findTyped: boolean;
|
|
38
|
-
focusToolbarButton: () => void;
|
|
39
39
|
};
|
|
40
40
|
export type ReplaceState = {
|
|
41
|
-
replaceText: string;
|
|
42
41
|
fakeSuccessReplacementMessageUpdate: boolean;
|
|
43
42
|
isComposing: boolean;
|
|
44
43
|
isHelperMessageVisible: boolean;
|
|
45
44
|
replaceCount: number;
|
|
45
|
+
replaceText: string;
|
|
46
46
|
};
|
|
47
47
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ReplaceProps & WrappedComponentProps>> & {
|
|
48
48
|
WrappedComponent: React.ComponentType<ReplaceProps & WrappedComponentProps>;
|
|
@@ -4,34 +4,34 @@ import type { DispatchAnalyticsEvent } from '@atlaskit/editor-common/analytics';
|
|
|
4
4
|
import { TRIGGER_METHOD } from '@atlaskit/editor-common/analytics';
|
|
5
5
|
export type ReplaceProps = {
|
|
6
6
|
canReplace: boolean;
|
|
7
|
-
replaceText?: string;
|
|
8
|
-
onReplace: ({ triggerMethod, replaceText, }: {
|
|
9
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
10
|
-
replaceText: string;
|
|
11
|
-
}) => void;
|
|
12
|
-
onReplaceAll: ({ replaceText }: {
|
|
13
|
-
replaceText: string;
|
|
14
|
-
}) => void;
|
|
15
|
-
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
16
|
-
onArrowUp: () => void;
|
|
17
|
-
onCancel: ({ triggerMethod, }: {
|
|
18
|
-
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
19
|
-
}) => void;
|
|
20
7
|
count: {
|
|
21
8
|
index: number;
|
|
22
9
|
total: number;
|
|
23
10
|
totalReplaceable?: number;
|
|
24
11
|
};
|
|
12
|
+
dispatchAnalyticsEvent?: DispatchAnalyticsEvent;
|
|
13
|
+
findTyped: boolean;
|
|
14
|
+
focusToolbarButton: () => void;
|
|
15
|
+
onArrowUp: () => void;
|
|
16
|
+
onCancel: ({ triggerMethod, }: {
|
|
17
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.TOOLBAR | TRIGGER_METHOD.BUTTON;
|
|
18
|
+
}) => void;
|
|
25
19
|
onFindNext: ({ triggerMethod, }: {
|
|
26
20
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
27
21
|
}) => void;
|
|
28
22
|
onFindPrev: ({ triggerMethod, }: {
|
|
29
23
|
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
30
24
|
}) => void;
|
|
31
|
-
|
|
25
|
+
onReplace: ({ triggerMethod, replaceText, }: {
|
|
26
|
+
replaceText: string;
|
|
27
|
+
triggerMethod: TRIGGER_METHOD.KEYBOARD | TRIGGER_METHOD.BUTTON;
|
|
28
|
+
}) => void;
|
|
29
|
+
onReplaceAll: ({ replaceText }: {
|
|
30
|
+
replaceText: string;
|
|
31
|
+
}) => void;
|
|
32
|
+
onReplaceTextfieldRefSet: (ref: React.RefObject<HTMLInputElement>) => void;
|
|
33
|
+
replaceText?: string;
|
|
32
34
|
setFindTyped: (value: boolean) => void;
|
|
33
|
-
findTyped: boolean;
|
|
34
|
-
focusToolbarButton: () => void;
|
|
35
35
|
};
|
|
36
36
|
declare const _default: React.FC<import("react-intl-next").WithIntlProps<ReplaceProps & WrappedComponentProps>> & {
|
|
37
37
|
WrappedComponent: React.ComponentType<ReplaceProps & WrappedComponentProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.7",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
|
|
41
41
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
42
42
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
43
|
-
"@atlaskit/form": "^12.
|
|
43
|
+
"@atlaskit/form": "^12.2.0",
|
|
44
44
|
"@atlaskit/icon": "^28.0.0",
|
|
45
45
|
"@atlaskit/icon-lab": "^5.6.0",
|
|
46
46
|
"@atlaskit/mention": "^24.2.0",
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
"@atlaskit/primitives": "^14.11.0",
|
|
49
49
|
"@atlaskit/textfield": "^8.0.0",
|
|
50
50
|
"@atlaskit/theme": "^19.0.0",
|
|
51
|
-
"@atlaskit/tmp-editor-statsig": "^11.
|
|
51
|
+
"@atlaskit/tmp-editor-statsig": "^11.5.0",
|
|
52
52
|
"@atlaskit/tokens": "^6.0.0",
|
|
53
53
|
"@atlaskit/tooltip": "^20.4.0",
|
|
54
54
|
"@babel/runtime": "^7.0.0",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"react-dom": "^18.2.0"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
|
-
"@atlaskit/editor-common": "^107.
|
|
71
|
+
"@atlaskit/editor-common": "^107.28.0",
|
|
72
72
|
"react": "^18.2.0",
|
|
73
73
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
74
74
|
},
|