@atlaskit/editor-plugin-type-ahead 5.1.0 → 5.2.1

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,24 @@
1
1
  # @atlaskit/editor-plugin-type-ahead
2
2
 
3
+ ## 5.2.1
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.2.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [`b367661ba720e`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/b367661ba720e) -
16
+ EDITOR-1562 bump adf-schema for afm
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies
21
+
3
22
  ## 5.1.0
4
23
 
5
24
  ### Minor Changes
@@ -265,6 +265,9 @@ var typeAheadPlugin = exports.typeAheadPlugin = function typeAheadPlugin(_ref) {
265
265
  popupsBoundariesElement: popupsBoundariesElement,
266
266
  popupsScrollableElement: popupsScrollableElement || containerElement || undefined
267
267
  };
268
+ if (!editorView) {
269
+ return null;
270
+ }
268
271
  return /*#__PURE__*/_react.default.createElement(_ContentComponent.ContentComponent, {
269
272
  editorView: editorView,
270
273
  popupMountRef: popupMountRef,
@@ -260,6 +260,9 @@ export const typeAheadPlugin = ({
260
260
  popupsBoundariesElement,
261
261
  popupsScrollableElement: popupsScrollableElement || containerElement || undefined
262
262
  };
263
+ if (!editorView) {
264
+ return null;
265
+ }
263
266
  return /*#__PURE__*/React.createElement(ContentComponent, {
264
267
  editorView: editorView,
265
268
  popupMountRef: popupMountRef,
@@ -257,6 +257,9 @@ export var typeAheadPlugin = function typeAheadPlugin(_ref) {
257
257
  popupsBoundariesElement: popupsBoundariesElement,
258
258
  popupsScrollableElement: popupsScrollableElement || containerElement || undefined
259
259
  };
260
+ if (!editorView) {
261
+ return null;
262
+ }
260
263
  return /*#__PURE__*/React.createElement(ContentComponent, {
261
264
  editorView: editorView,
262
265
  popupMountRef: popupMountRef,
@@ -3,7 +3,8 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- export declare const minHeightComponentStyles: import("@emotion/react").SerializedStyles;
6
+ import { type SerializedStyles } from '@emotion/react';
7
+ export declare const minHeightComponentStyles: SerializedStyles;
7
8
  export declare const MinHeightContainer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
8
9
  minHeight: string;
9
10
  } & React.RefAttributes<HTMLDivElement>>;
@@ -3,11 +3,11 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import { jsx } from '@emotion/react';
6
+ import { jsx, type SerializedStyles } from '@emotion/react';
7
7
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
8
8
  import { type ExtractInjectionAPI, type TypeAheadItem } from '@atlaskit/editor-common/types';
9
9
  import { type TypeAheadPlugin } from '../typeAheadPluginType';
10
- export declare const itemIcon: import("@emotion/react").SerializedStyles;
10
+ export declare const itemIcon: SerializedStyles;
11
11
  type TypeAheadListItemProps = {
12
12
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
13
13
  ariaLabel?: string;
@@ -3,7 +3,8 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- export declare const minHeightComponentStyles: import("@emotion/react").SerializedStyles;
6
+ import { type SerializedStyles } from '@emotion/react';
7
+ export declare const minHeightComponentStyles: SerializedStyles;
7
8
  export declare const MinHeightContainer: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
8
9
  minHeight: string;
9
10
  } & React.RefAttributes<HTMLDivElement>>;
@@ -3,11 +3,11 @@
3
3
  * @jsx jsx
4
4
  */
5
5
  import React from 'react';
6
- import { jsx } from '@emotion/react';
6
+ import { jsx, type SerializedStyles } from '@emotion/react';
7
7
  import { SelectItemMode } from '@atlaskit/editor-common/type-ahead';
8
8
  import { type ExtractInjectionAPI, type TypeAheadItem } from '@atlaskit/editor-common/types';
9
9
  import { type TypeAheadPlugin } from '../typeAheadPluginType';
10
- export declare const itemIcon: import("@emotion/react").SerializedStyles;
10
+ export declare const itemIcon: SerializedStyles;
11
11
  type TypeAheadListItemProps = {
12
12
  api: ExtractInjectionAPI<TypeAheadPlugin> | undefined;
13
13
  ariaLabel?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-type-ahead",
3
- "version": "5.1.0",
3
+ "version": "5.2.1",
4
4
  "description": "Type-ahead plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -29,12 +29,12 @@
29
29
  ],
30
30
  "atlaskit:src": "src/index.ts",
31
31
  "dependencies": {
32
- "@atlaskit/adf-schema": "^51.1.1",
32
+ "@atlaskit/adf-schema": "^51.1.2",
33
33
  "@atlaskit/editor-element-browser": "^3.0.0",
34
- "@atlaskit/editor-plugin-analytics": "^5.1.0",
34
+ "@atlaskit/editor-plugin-analytics": "^5.2.0",
35
35
  "@atlaskit/editor-plugin-connectivity": "^5.0.0",
36
36
  "@atlaskit/editor-plugin-context-panel": "^7.0.0",
37
- "@atlaskit/editor-plugin-metrics": "^6.1.0",
37
+ "@atlaskit/editor-plugin-metrics": "^6.2.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
40
  "@atlaskit/heading": "^5.2.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/primitives": "^14.14.0",
46
46
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
47
47
  "@atlaskit/theme": "^21.0.0",
48
- "@atlaskit/tmp-editor-statsig": "^12.14.0",
48
+ "@atlaskit/tmp-editor-statsig": "^12.21.0",
49
49
  "@atlaskit/tokens": "^6.3.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1",
@@ -56,7 +56,7 @@
56
56
  "w3c-keyname": "^2.1.8"
57
57
  },
58
58
  "peerDependencies": {
59
- "@atlaskit/editor-common": "^109.3.0",
59
+ "@atlaskit/editor-common": "^109.6.0",
60
60
  "react": "^18.2.0",
61
61
  "react-dom": "^18.2.0",
62
62
  "react-intl-next": "npm:react-intl@^5.18.1"