@atlaskit/editor-plugin-find-replace 5.0.3 → 5.0.5

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,21 @@
1
1
  # @atlaskit/editor-plugin-find-replace
2
2
 
3
+ ## 5.0.5
4
+
5
+ ### Patch Changes
6
+
7
+ - [`6fb79942fc3a5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/6fb79942fc3a5) -
8
+ Internal changes to how borders are applied.
9
+ - Updated dependencies
10
+
11
+ ## 5.0.4
12
+
13
+ ### Patch Changes
14
+
15
+ - [`39f3b00f65aa0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39f3b00f65aa0) -
16
+ NOISSUE: Patches emotion CSS exports in various editor packages
17
+ - Updated dependencies
18
+
3
19
  ## 5.0.3
4
20
 
5
21
  ### Patch Changes
@@ -36,6 +36,9 @@ var findReplacePlugin = exports.findReplacePlugin = function findReplacePlugin(_
36
36
  editorView = _ref2.editorView,
37
37
  containerElement = _ref2.containerElement,
38
38
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent;
39
+ if (!editorView) {
40
+ return null;
41
+ }
39
42
  var isButtonHidden = (0, _platformFeatureFlags.fg)('platform_editor_toolbar_responsive_fixes') ? toolbarSize < _types.ToolbarSize.XL : false;
40
43
  if (props !== null && props !== void 0 && props.twoLineEditorToolbar) {
41
44
  return null;
@@ -155,7 +158,7 @@ var findReplacePlugin = exports.findReplacePlugin = function findReplacePlugin(_
155
158
  popupsScrollableElement = _ref5.popupsScrollableElement,
156
159
  wrapperElement = _ref5.wrapperElement,
157
160
  dispatchAnalyticsEvent = _ref5.dispatchAnalyticsEvent;
158
- if (toolbarButtonRegisteredExternally.current) {
161
+ if (toolbarButtonRegisteredExternally.current || !editorView) {
159
162
  return null;
160
163
  }
161
164
  var popupsMountPointEl = popupsMountPoint || ( // eslint-disable-next-line @atlaskit/editor/no-as-casting
@@ -24,7 +24,7 @@ var ruleStyles = exports.ruleStyles = (0, _react.css)({
24
24
  backgroundColor: "".concat("var(--ds-border, ".concat(_colors.N30A, ")")),
25
25
  margin: "var(--ds-space-050, 4px)".concat(" 0px"),
26
26
  height: '1px',
27
- borderRadius: '1px'
27
+ borderRadius: "var(--ds-border-width, 1px)"
28
28
  });
29
29
 
30
30
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -31,6 +31,9 @@ export const findReplacePlugin = ({
31
31
  containerElement,
32
32
  dispatchAnalyticsEvent
33
33
  }) => {
34
+ if (!editorView) {
35
+ return null;
36
+ }
34
37
  const isButtonHidden = fg('platform_editor_toolbar_responsive_fixes') ? toolbarSize < ToolbarSize.XL : false;
35
38
  if (props !== null && props !== void 0 && props.twoLineEditorToolbar) {
36
39
  return null;
@@ -152,7 +155,7 @@ export const findReplacePlugin = ({
152
155
  wrapperElement,
153
156
  dispatchAnalyticsEvent
154
157
  }) => {
155
- if (toolbarButtonRegisteredExternally.current) {
158
+ if (toolbarButtonRegisteredExternally.current || !editorView) {
156
159
  return null;
157
160
  }
158
161
  const popupsMountPointEl = popupsMountPoint || ( // eslint-disable-next-line @atlaskit/editor/no-as-casting
@@ -17,7 +17,7 @@ export const ruleStyles = css({
17
17
  backgroundColor: `${`var(--ds-border, ${N30A})`}`,
18
18
  margin: `${"var(--ds-space-050, 4px)"} 0px`,
19
19
  height: '1px',
20
- borderRadius: '1px'
20
+ borderRadius: "var(--ds-border-width, 1px)"
21
21
  });
22
22
 
23
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
@@ -29,6 +29,9 @@ export var findReplacePlugin = function findReplacePlugin(_ref) {
29
29
  editorView = _ref2.editorView,
30
30
  containerElement = _ref2.containerElement,
31
31
  dispatchAnalyticsEvent = _ref2.dispatchAnalyticsEvent;
32
+ if (!editorView) {
33
+ return null;
34
+ }
32
35
  var isButtonHidden = fg('platform_editor_toolbar_responsive_fixes') ? toolbarSize < ToolbarSize.XL : false;
33
36
  if (props !== null && props !== void 0 && props.twoLineEditorToolbar) {
34
37
  return null;
@@ -148,7 +151,7 @@ export var findReplacePlugin = function findReplacePlugin(_ref) {
148
151
  popupsScrollableElement = _ref5.popupsScrollableElement,
149
152
  wrapperElement = _ref5.wrapperElement,
150
153
  dispatchAnalyticsEvent = _ref5.dispatchAnalyticsEvent;
151
- if (toolbarButtonRegisteredExternally.current) {
154
+ if (toolbarButtonRegisteredExternally.current || !editorView) {
152
155
  return null;
153
156
  }
154
157
  var popupsMountPointEl = popupsMountPoint || ( // eslint-disable-next-line @atlaskit/editor/no-as-casting
@@ -17,7 +17,7 @@ export var ruleStyles = css({
17
17
  backgroundColor: "".concat("var(--ds-border, ".concat(N30A, ")")),
18
18
  margin: "var(--ds-space-050, 4px)".concat(" 0px"),
19
19
  height: '1px',
20
- borderRadius: '1px'
20
+ borderRadius: "var(--ds-border-width, 1px)"
21
21
  });
22
22
 
23
23
  // eslint-disable-next-line @atlaskit/ui-styling-standard/no-exported-styles -- Ignored via go/DSP-18766
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "5.0.3",
3
+ "version": "5.0.5",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,22 +29,22 @@
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
31
  "@atlaskit/button": "^23.4.0",
32
- "@atlaskit/editor-plugin-analytics": "^5.1.0",
33
- "@atlaskit/editor-plugin-card": "^10.0.0",
34
- "@atlaskit/editor-plugin-expand": "^6.1.0",
35
- "@atlaskit/editor-plugin-mentions": "^7.1.0",
32
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
33
+ "@atlaskit/editor-plugin-card": "^10.1.0",
34
+ "@atlaskit/editor-plugin-expand": "^6.2.0",
35
+ "@atlaskit/editor-plugin-mentions": "^7.2.0",
36
36
  "@atlaskit/editor-plugin-primary-toolbar": "^6.0.0",
37
37
  "@atlaskit/editor-prosemirror": "7.0.0",
38
38
  "@atlaskit/editor-shared-styles": "^3.6.0",
39
39
  "@atlaskit/form": "^12.6.0",
40
- "@atlaskit/icon": "^28.1.0",
40
+ "@atlaskit/icon": "^28.2.0",
41
41
  "@atlaskit/icon-lab": "^5.7.0",
42
42
  "@atlaskit/mention": "^24.2.0",
43
43
  "@atlaskit/platform-feature-flags": "^1.1.0",
44
44
  "@atlaskit/primitives": "^14.14.0",
45
45
  "@atlaskit/textfield": "^8.0.0",
46
46
  "@atlaskit/theme": "^21.0.0",
47
- "@atlaskit/tmp-editor-statsig": "^12.18.0",
47
+ "@atlaskit/tmp-editor-statsig": "^12.24.0",
48
48
  "@atlaskit/tokens": "^6.3.0",
49
49
  "@atlaskit/tooltip": "^20.4.0",
50
50
  "@babel/runtime": "^7.0.0",
@@ -55,8 +55,8 @@
55
55
  },
56
56
  "devDependencies": {
57
57
  "@af/visual-regression": "workspace:^",
58
- "@atlaskit/editor-plugin-block-type": "^8.1.0",
59
- "@atlaskit/editor-plugin-text-formatting": "^5.1.0",
58
+ "@atlaskit/editor-plugin-block-type": "^8.2.0",
59
+ "@atlaskit/editor-plugin-text-formatting": "^5.2.0",
60
60
  "@testing-library/react": "^13.4.0",
61
61
  "@testing-library/user-event": "^14.4.3",
62
62
  "mockdate": "^3.0.5",
@@ -64,7 +64,7 @@
64
64
  "react-dom": "^18.2.0"
65
65
  },
66
66
  "peerDependencies": {
67
- "@atlaskit/editor-common": "^109.4.0",
67
+ "@atlaskit/editor-common": "^109.8.0",
68
68
  "react": "^18.2.0",
69
69
  "react-intl-next": "npm:react-intl@^5.18.1"
70
70
  },