@atlaskit/editor-plugin-find-replace 1.7.22 → 1.7.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-find-replace
|
|
2
2
|
|
|
3
|
+
## 1.7.23
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#102547](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102547)
|
|
8
|
+
[`b76cc60ba170b`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b76cc60ba170b) -
|
|
9
|
+
Internal changes to remove deprecated typography imports.
|
|
10
|
+
|
|
3
11
|
## 1.7.22
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/dist/cjs/ui/ui-styles.js
CHANGED
|
@@ -7,7 +7,6 @@ exports.wrapperStyles = exports.wrapperPaddingStyles = exports.textFieldWrapper
|
|
|
7
7
|
var _react = require("@emotion/react");
|
|
8
8
|
var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
|
|
9
9
|
var _colors = require("@atlaskit/theme/colors");
|
|
10
|
-
var _constants = require("@atlaskit/theme/constants");
|
|
11
10
|
/* eslint-disable @atlaskit/design-system/no-nested-styles */
|
|
12
11
|
/* eslint-disable @repo/internal/styles/no-exported-styles */
|
|
13
12
|
/**
|
|
@@ -16,8 +15,7 @@ var _constants = require("@atlaskit/theme/constants");
|
|
|
16
15
|
*/
|
|
17
16
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/use-compiled -- Ignored via go/DSP-18766
|
|
18
17
|
|
|
19
|
-
var fontSize =
|
|
20
|
-
var gridSize = (0, _constants.gridSize)();
|
|
18
|
+
var fontSize = 14;
|
|
21
19
|
|
|
22
20
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
23
21
|
var ruleStyles = exports.ruleStyles = (0, _react.css)({
|
|
@@ -84,14 +82,14 @@ var textFieldWrapper = exports.textFieldWrapper = (0, _react.css)({
|
|
|
84
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
85
83
|
'#find-text-field, #replace-text-field': {
|
|
86
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
87
|
-
height: "".concat(
|
|
85
|
+
height: "".concat(36 / fontSize, "em")
|
|
88
86
|
},
|
|
89
87
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
90
88
|
label: {
|
|
91
89
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
92
90
|
fontSize: (0, _editorSharedStyles.relativeFontSizeToBase16)(14),
|
|
93
91
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
94
|
-
lineHeight:
|
|
92
|
+
lineHeight: '16px'
|
|
95
93
|
}
|
|
96
94
|
});
|
|
97
95
|
|
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
9
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
10
10
|
import { N30A } from '@atlaskit/theme/colors';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
13
|
-
gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
14
|
-
const fontSize = getFontSize();
|
|
15
|
-
const gridSize = getGridSize();
|
|
11
|
+
const fontSize = 14;
|
|
16
12
|
|
|
17
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
14
|
export const ruleStyles = css({
|
|
@@ -79,14 +75,14 @@ export const textFieldWrapper = css({
|
|
|
79
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
80
76
|
'#find-text-field, #replace-text-field': {
|
|
81
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
82
|
-
height: `${
|
|
78
|
+
height: `${36 / fontSize}em`
|
|
83
79
|
},
|
|
84
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
85
81
|
label: {
|
|
86
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
87
83
|
fontSize: relativeFontSizeToBase16(14),
|
|
88
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
89
|
-
lineHeight:
|
|
85
|
+
lineHeight: '16px'
|
|
90
86
|
}
|
|
91
87
|
});
|
|
92
88
|
|
package/dist/esm/ui/ui-styles.js
CHANGED
|
@@ -8,11 +8,7 @@
|
|
|
8
8
|
import { css } from '@emotion/react';
|
|
9
9
|
import { relativeFontSizeToBase16 } from '@atlaskit/editor-shared-styles';
|
|
10
10
|
import { N30A } from '@atlaskit/theme/colors';
|
|
11
|
-
|
|
12
|
-
// eslint-disable-next-line @atlaskit/design-system/no-deprecated-imports
|
|
13
|
-
gridSize as getGridSize } from '@atlaskit/theme/constants';
|
|
14
|
-
var fontSize = getFontSize();
|
|
15
|
-
var gridSize = getGridSize();
|
|
11
|
+
var fontSize = 14;
|
|
16
12
|
|
|
17
13
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
|
|
18
14
|
export var ruleStyles = css({
|
|
@@ -79,14 +75,14 @@ export var textFieldWrapper = css({
|
|
|
79
75
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
80
76
|
'#find-text-field, #replace-text-field': {
|
|
81
77
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
82
|
-
height: "".concat(
|
|
78
|
+
height: "".concat(36 / fontSize, "em")
|
|
83
79
|
},
|
|
84
80
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-nested-selectors -- Ignored via go/DSP-18766
|
|
85
81
|
label: {
|
|
86
82
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-imported-style-values, @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
|
|
87
83
|
fontSize: relativeFontSizeToBase16(14),
|
|
88
84
|
// eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
|
|
89
|
-
lineHeight:
|
|
85
|
+
lineHeight: '16px'
|
|
90
86
|
}
|
|
91
87
|
});
|
|
92
88
|
|
|
@@ -7,10 +7,14 @@ type Config = {
|
|
|
7
7
|
takeFullWidth: boolean;
|
|
8
8
|
twoLineEditorToolbar: boolean;
|
|
9
9
|
};
|
|
10
|
+
export type FindReplacePluginDependencies = [
|
|
11
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
12
|
+
OptionalPlugin<PrimaryToolbarPlugin>
|
|
13
|
+
];
|
|
10
14
|
export type FindReplacePlugin = NextEditorPlugin<'findReplace', {
|
|
11
15
|
pluginConfiguration: Config;
|
|
12
16
|
sharedState: FindReplacePluginState | undefined;
|
|
13
|
-
dependencies:
|
|
17
|
+
dependencies: FindReplacePluginDependencies;
|
|
14
18
|
actions: {
|
|
15
19
|
getToolbarButton: (params: FindReplaceToolbarButtonActionProps) => React.ReactNode;
|
|
16
20
|
};
|
|
@@ -7,13 +7,14 @@ type Config = {
|
|
|
7
7
|
takeFullWidth: boolean;
|
|
8
8
|
twoLineEditorToolbar: boolean;
|
|
9
9
|
};
|
|
10
|
+
export type FindReplacePluginDependencies = [
|
|
11
|
+
OptionalPlugin<AnalyticsPlugin>,
|
|
12
|
+
OptionalPlugin<PrimaryToolbarPlugin>
|
|
13
|
+
];
|
|
10
14
|
export type FindReplacePlugin = NextEditorPlugin<'findReplace', {
|
|
11
15
|
pluginConfiguration: Config;
|
|
12
16
|
sharedState: FindReplacePluginState | undefined;
|
|
13
|
-
dependencies:
|
|
14
|
-
OptionalPlugin<AnalyticsPlugin>,
|
|
15
|
-
OptionalPlugin<PrimaryToolbarPlugin>
|
|
16
|
-
];
|
|
17
|
+
dependencies: FindReplacePluginDependencies;
|
|
17
18
|
actions: {
|
|
18
19
|
getToolbarButton: (params: FindReplaceToolbarButtonActionProps) => React.ReactNode;
|
|
19
20
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-find-replace",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.23",
|
|
4
4
|
"description": "find replace plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
35
|
"@atlaskit/button": "^20.3.0",
|
|
36
|
-
"@atlaskit/editor-common": "^99.
|
|
36
|
+
"@atlaskit/editor-common": "^99.1.0",
|
|
37
37
|
"@atlaskit/editor-plugin-analytics": "^1.10.0",
|
|
38
38
|
"@atlaskit/editor-plugin-primary-toolbar": "^2.1.0",
|
|
39
39
|
"@atlaskit/editor-prosemirror": "6.2.1",
|