@atlaskit/editor-plugin-find-replace 1.7.21 → 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,19 @@
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
+
11
+ ## 1.7.22
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 1.7.21
4
18
 
5
19
  ### Patch Changes
@@ -21,7 +21,7 @@ var _keymaps = require("@atlaskit/editor-common/keymaps");
21
21
  var _messages = require("@atlaskit/editor-common/messages");
22
22
  var _uiMenu = require("@atlaskit/editor-common/ui-menu");
23
23
  var _editorSharedStyles = require("@atlaskit/editor-shared-styles");
24
- var _search = _interopRequireDefault(require("@atlaskit/icon/glyph/editor/search"));
24
+ var _search = _interopRequireDefault(require("@atlaskit/icon/core/migration/search"));
25
25
  var _platformFeatureFlags = require("@atlaskit/platform-feature-flags");
26
26
  var _FindReplace = _interopRequireDefault(require("./FindReplace"));
27
27
  var _templateObject;
@@ -151,7 +151,8 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
151
151
  keymap: keymap
152
152
  }),
153
153
  iconBefore: (0, _react2.jsx)(_search.default, {
154
- label: title
154
+ label: title,
155
+ spacing: "spacious"
155
156
  }),
156
157
  onClick: this.toggleOpen,
157
158
  "aria-expanded": isActive,
@@ -169,7 +170,8 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
169
170
  keymap: keymap
170
171
  }),
171
172
  iconBefore: (0, _react2.jsx)(_search.default, {
172
- label: title
173
+ label: title,
174
+ spacing: "spacious"
173
175
  }),
174
176
  onClick: this.toggleOpen,
175
177
  "aria-expanded": isActive,
@@ -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 = (0, _constants.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(gridSize * 4.5 / fontSize, "em")
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
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
94
- lineHeight: "".concat(gridSize * 2, "px")
91
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
92
+ lineHeight: '16px'
95
93
  }
96
94
  });
97
95
 
@@ -15,7 +15,7 @@ import { findKeymapByDescription, getAriaKeyshortcuts, tooltip, ToolTipContent }
15
15
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
16
16
  import { ArrowKeyNavigationType, Dropdown, TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
17
17
  import { akEditorFloatingPanelZIndex, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
18
- import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
18
+ import SearchIcon from '@atlaskit/icon/core/migration/search';
19
19
  import { fg } from '@atlaskit/platform-feature-flags';
20
20
  import FindReplace from './FindReplace';
21
21
 
@@ -140,8 +140,9 @@ class FindReplaceToolbarButton extends React.PureComponent {
140
140
  description: title,
141
141
  keymap: keymap
142
142
  }),
143
- iconBefore: jsx(EditorSearchIcon, {
144
- label: title
143
+ iconBefore: jsx(SearchIcon, {
144
+ label: title,
145
+ spacing: "spacious"
145
146
  }),
146
147
  onClick: this.toggleOpen,
147
148
  "aria-expanded": isActive,
@@ -158,8 +159,9 @@ class FindReplaceToolbarButton extends React.PureComponent {
158
159
  description: title,
159
160
  keymap: keymap
160
161
  }),
161
- iconBefore: jsx(EditorSearchIcon, {
162
- label: title
162
+ iconBefore: jsx(SearchIcon, {
163
+ label: title,
164
+ spacing: "spacious"
163
165
  }),
164
166
  onClick: this.toggleOpen,
165
167
  "aria-expanded": isActive,
@@ -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
- import { fontSize as getFontSize,
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: `${gridSize * 4.5 / fontSize}em`
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
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
89
- lineHeight: `${gridSize * 2}px`
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
85
+ lineHeight: '16px'
90
86
  }
91
87
  });
92
88
 
@@ -24,7 +24,7 @@ import { findKeymapByDescription, getAriaKeyshortcuts, tooltip, ToolTipContent }
24
24
  import { findReplaceMessages as messages } from '@atlaskit/editor-common/messages';
25
25
  import { ArrowKeyNavigationType, Dropdown, TOOLBAR_BUTTON, ToolbarButton } from '@atlaskit/editor-common/ui-menu';
26
26
  import { akEditorFloatingPanelZIndex, akEditorMobileMaxWidth } from '@atlaskit/editor-shared-styles';
27
- import EditorSearchIcon from '@atlaskit/icon/glyph/editor/search';
27
+ import SearchIcon from '@atlaskit/icon/core/migration/search';
28
28
  import { fg } from '@atlaskit/platform-feature-flags';
29
29
  import FindReplace from './FindReplace';
30
30
 
@@ -145,8 +145,9 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
145
145
  description: title,
146
146
  keymap: keymap
147
147
  }),
148
- iconBefore: jsx(EditorSearchIcon, {
149
- label: title
148
+ iconBefore: jsx(SearchIcon, {
149
+ label: title,
150
+ spacing: "spacious"
150
151
  }),
151
152
  onClick: this.toggleOpen,
152
153
  "aria-expanded": isActive,
@@ -163,8 +164,9 @@ var FindReplaceToolbarButton = /*#__PURE__*/function (_React$PureComponent) {
163
164
  description: title,
164
165
  keymap: keymap
165
166
  }),
166
- iconBefore: jsx(EditorSearchIcon, {
167
- label: title
167
+ iconBefore: jsx(SearchIcon, {
168
+ label: title,
169
+ spacing: "spacious"
168
170
  }),
169
171
  onClick: this.toggleOpen,
170
172
  "aria-expanded": isActive,
@@ -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
- import { fontSize as getFontSize,
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(gridSize * 4.5 / fontSize, "em")
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
- // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values -- Ignored via go/DSP-18766
89
- lineHeight: "".concat(gridSize * 2, "px")
84
+ // eslint-disable-next-line @atlaskit/ui-styling-standard/no-unsafe-values, @atlaskit/design-system/use-tokens-typography -- Ignored via go/DSP-18766
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: [OptionalPlugin<AnalyticsPlugin>, OptionalPlugin<PrimaryToolbarPlugin>];
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.21",
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,18 +33,18 @@
33
33
  },
34
34
  "dependencies": {
35
35
  "@atlaskit/button": "^20.3.0",
36
- "@atlaskit/editor-common": "^98.0.0",
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",
40
40
  "@atlaskit/editor-shared-styles": "^3.2.0",
41
41
  "@atlaskit/form": "^11.0.0",
42
- "@atlaskit/icon": "^23.1.0",
42
+ "@atlaskit/icon": "^23.3.0",
43
43
  "@atlaskit/platform-feature-flags": "^0.3.0",
44
44
  "@atlaskit/primitives": "^13.3.0",
45
45
  "@atlaskit/textfield": "^6.7.0",
46
46
  "@atlaskit/theme": "^14.0.0",
47
- "@atlaskit/tokens": "^2.5.0",
47
+ "@atlaskit/tokens": "^3.0.0",
48
48
  "@atlaskit/tooltip": "^19.0.0",
49
49
  "@babel/runtime": "^7.0.0",
50
50
  "@emotion/react": "^11.7.1",