@atlaskit/editor-plugin-find-replace 5.0.2 → 5.0.4

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
+ ## 5.0.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`39f3b00f65aa0`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/39f3b00f65aa0) -
8
+ NOISSUE: Patches emotion CSS exports in various editor packages
9
+ - Updated dependencies
10
+
11
+ ## 5.0.3
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 5.0.2
4
18
 
5
19
  ### 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
@@ -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
@@ -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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-find-replace",
3
- "version": "5.0.2",
3
+ "version": "5.0.4",
4
4
  "description": "find replace plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,14 +29,14 @@
29
29
  "atlaskit:src": "src/index.ts",
30
30
  "dependencies": {
31
31
  "@atlaskit/button": "^23.4.0",
32
- "@atlaskit/editor-plugin-analytics": "^5.0.0",
33
- "@atlaskit/editor-plugin-card": "^9.0.0",
34
- "@atlaskit/editor-plugin-expand": "^6.0.0",
35
- "@atlaskit/editor-plugin-mentions": "^7.0.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
- "@atlaskit/form": "^12.5.0",
39
+ "@atlaskit/form": "^12.6.0",
40
40
  "@atlaskit/icon": "^28.1.0",
41
41
  "@atlaskit/icon-lab": "^5.7.0",
42
42
  "@atlaskit/mention": "^24.2.0",
@@ -44,7 +44,7 @@
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.12.0",
47
+ "@atlaskit/tmp-editor-statsig": "^12.21.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.0.0",
59
- "@atlaskit/editor-plugin-text-formatting": "^5.0.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.1.0",
67
+ "@atlaskit/editor-common": "^109.6.0",
68
68
  "react": "^18.2.0",
69
69
  "react-intl-next": "npm:react-intl@^5.18.1"
70
70
  },