@atlaskit/editor-plugin-find-replace 3.2.6 → 3.2.8
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/dist/cjs/pm-plugins/commands.js +3 -4
- package/dist/cjs/pm-plugins/plugin-factory.js +1 -2
- package/dist/cjs/ui/Find.js +1 -2
- package/dist/cjs/ui/Replace.js +2 -3
- package/dist/cjs/ui/ReplaceNext.js +2 -3
- package/dist/cjs/ui/styles.js +3 -98
- package/dist/es2019/pm-plugins/commands.js +3 -4
- package/dist/es2019/pm-plugins/plugin-factory.js +1 -2
- package/dist/es2019/ui/Find.js +1 -2
- package/dist/es2019/ui/Replace.js +2 -3
- package/dist/es2019/ui/ReplaceNext.js +2 -3
- package/dist/es2019/ui/styles.js +0 -205
- package/dist/esm/pm-plugins/commands.js +3 -4
- package/dist/esm/pm-plugins/plugin-factory.js +1 -2
- package/dist/esm/ui/Find.js +1 -2
- package/dist/esm/ui/Replace.js +2 -3
- package/dist/esm/ui/ReplaceNext.js +2 -3
- package/dist/esm/ui/styles.js +2 -97
- 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/ui/styles.d.ts +0 -1
- 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/dist/types-ts4.5/ui/styles.d.ts +0 -1
- package/package.json +6 -9
|
@@ -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>;
|
|
@@ -7,4 +7,3 @@ export declare const darkModeSearchMatchClass = "search-match-dark";
|
|
|
7
7
|
export declare const searchMatchExpandTitleClass = "search-match-expand-title";
|
|
8
8
|
export declare const findReplaceStyles: import("@emotion/react").SerializedStyles;
|
|
9
9
|
export declare const findReplaceStylesNew: import("@emotion/react").SerializedStyles;
|
|
10
|
-
export declare const findReplaceStylesNewNoImportant: import("@emotion/react").SerializedStyles;
|
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.8",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,13 +34,13 @@
|
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^23.4.0",
|
|
36
36
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
37
|
-
"@atlaskit/editor-plugin-card": "^7.
|
|
38
|
-
"@atlaskit/editor-plugin-expand": "^4.
|
|
37
|
+
"@atlaskit/editor-plugin-card": "^7.5.0",
|
|
38
|
+
"@atlaskit/editor-plugin-expand": "^4.3.0",
|
|
39
39
|
"@atlaskit/editor-plugin-mentions": "^5.2.0",
|
|
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.6.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.29.0",
|
|
72
72
|
"react": "^18.2.0",
|
|
73
73
|
"react-intl-next": "npm:react-intl@^5.18.1"
|
|
74
74
|
},
|
|
@@ -121,9 +121,6 @@
|
|
|
121
121
|
},
|
|
122
122
|
"editor_a11y_refactor_find_replace_style": {
|
|
123
123
|
"type": "boolean"
|
|
124
|
-
},
|
|
125
|
-
"platform_editor_find_and_replace_improvements_1": {
|
|
126
|
-
"type": "boolean"
|
|
127
124
|
}
|
|
128
125
|
}
|
|
129
126
|
}
|