@atlaskit/editor-plugin-panel 5.3.2 → 5.3.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,21 @@
1
1
  # @atlaskit/editor-plugin-panel
2
2
 
3
+ ## 5.3.4
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9f69369cd05b8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/9f69369cd05b8) -
8
+ Make wrap command more resilient
9
+ - Updated dependencies
10
+
11
+ ## 5.3.3
12
+
13
+ ### Patch Changes
14
+
15
+ - [`20d3223b57972`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20d3223b57972) -
16
+ Opted out of debounced portal provider
17
+ - Updated dependencies
18
+
3
19
  ## 5.3.2
4
20
 
5
21
  ### Patch Changes
@@ -68,9 +68,9 @@ var PanelIcon = exports.PanelIcon = function PanelIcon(props) {
68
68
  });
69
69
  }
70
70
  var Icon = panelIcons[panelType];
71
- return /*#__PURE__*/_react.default.createElement(Icon, {
71
+ return Icon ? /*#__PURE__*/_react.default.createElement(Icon, {
72
72
  label: "".concat(panelType, " panel")
73
- });
73
+ }) : null;
74
74
  };
75
75
  var PanelNodeView = /*#__PURE__*/function () {
76
76
  function PanelNodeView(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
@@ -107,7 +107,9 @@ var PanelNodeView = /*#__PURE__*/function () {
107
107
  panelAttributes: node.attrs,
108
108
  providerFactory: _this.providerFactory
109
109
  });
110
- }, this.icon, this.key);
110
+ }, this.icon, this.key, undefined,
111
+ // @portal-render-immediately
112
+ true);
111
113
  }
112
114
  return (0, _createClass2.default)(PanelNodeView, [{
113
115
  key: "ignoreMutation",
@@ -65,9 +65,9 @@ export const PanelIcon = props => {
65
65
  });
66
66
  }
67
67
  const Icon = panelIcons[panelType];
68
- return /*#__PURE__*/React.createElement(Icon, {
68
+ return Icon ? /*#__PURE__*/React.createElement(Icon, {
69
69
  label: `${panelType} panel`
70
- });
70
+ }) : null;
71
71
  };
72
72
  class PanelNodeView {
73
73
  constructor(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
@@ -101,7 +101,9 @@ class PanelNodeView {
101
101
  allowCustomPanel: pluginOptions.allowCustomPanel,
102
102
  panelAttributes: node.attrs,
103
103
  providerFactory: this.providerFactory
104
- }), this.icon, this.key);
104
+ }), this.icon, this.key, undefined,
105
+ // @portal-render-immediately
106
+ true);
105
107
  }
106
108
  ignoreMutation(mutation) {
107
109
  // ignore mutation if it caused by the icon.
@@ -62,9 +62,9 @@ export var PanelIcon = function PanelIcon(props) {
62
62
  });
63
63
  }
64
64
  var Icon = panelIcons[panelType];
65
- return /*#__PURE__*/React.createElement(Icon, {
65
+ return Icon ? /*#__PURE__*/React.createElement(Icon, {
66
66
  label: "".concat(panelType, " panel")
67
- });
67
+ }) : null;
68
68
  };
69
69
  var PanelNodeView = /*#__PURE__*/function () {
70
70
  function PanelNodeView(node, view, getPos, pluginOptions, api, nodeViewPortalProviderAPI, providerFactory) {
@@ -101,7 +101,9 @@ var PanelNodeView = /*#__PURE__*/function () {
101
101
  panelAttributes: node.attrs,
102
102
  providerFactory: _this.providerFactory
103
103
  });
104
- }, this.icon, this.key);
104
+ }, this.icon, this.key, undefined,
105
+ // @portal-render-immediately
106
+ true);
105
107
  }
106
108
  return _createClass(PanelNodeView, [{
107
109
  key: "ignoreMutation",
@@ -18,7 +18,7 @@ interface PanelIconAttributes {
18
18
  allowCustomPanel?: boolean;
19
19
  pluginInjectionApi: ExtractInjectionAPI<PanelPlugin> | undefined;
20
20
  }
21
- export declare const PanelIcon: (props: PanelIconAttributes) => React.JSX.Element;
21
+ export declare const PanelIcon: (props: PanelIconAttributes) => React.JSX.Element | null;
22
22
  declare class PanelNodeView {
23
23
  node: PMNode;
24
24
  dom: HTMLElement;
@@ -18,7 +18,7 @@ interface PanelIconAttributes {
18
18
  allowCustomPanel?: boolean;
19
19
  pluginInjectionApi: ExtractInjectionAPI<PanelPlugin> | undefined;
20
20
  }
21
- export declare const PanelIcon: (props: PanelIconAttributes) => React.JSX.Element;
21
+ export declare const PanelIcon: (props: PanelIconAttributes) => React.JSX.Element | null;
22
22
  declare class PanelNodeView {
23
23
  node: PMNode;
24
24
  dom: HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-panel",
3
- "version": "5.3.2",
3
+ "version": "5.3.4",
4
4
  "description": "Panel plugin for @atlaskit/editor-core.",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -37,11 +37,11 @@
37
37
  "@atlaskit/editor-plugin-emoji": "^4.2.0",
38
38
  "@atlaskit/editor-prosemirror": "7.0.0",
39
39
  "@atlaskit/editor-shared-styles": "^3.6.0",
40
- "@atlaskit/emoji": "^69.4.0",
40
+ "@atlaskit/emoji": "^69.5.0",
41
41
  "@atlaskit/icon": "^27.12.0",
42
42
  "@atlaskit/platform-feature-flags": "^1.1.0",
43
43
  "@atlaskit/theme": "^19.0.0",
44
- "@atlaskit/tmp-editor-statsig": "^11.0.0",
44
+ "@atlaskit/tmp-editor-statsig": "^11.3.0",
45
45
  "@atlaskit/tokens": "^6.0.0",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "uuid": "^3.1.0"