@atlaskit/editor-plugin-layout 3.1.6 → 3.1.8

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-layout
2
2
 
3
+ ## 3.1.8
4
+
5
+ ### Patch Changes
6
+
7
+ - [`20d3223b57972`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/20d3223b57972) -
8
+ Opted out of debounced portal provider
9
+ - Updated dependencies
10
+
11
+ ## 3.1.7
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies
16
+
3
17
  ## 3.1.6
4
18
 
5
19
  ### Patch Changes
@@ -61,7 +61,7 @@ var layoutPlugin = exports.layoutPlugin = function layoutPlugin(_ref) {
61
61
  nodes: function nodes() {
62
62
  return [{
63
63
  name: 'layoutSection',
64
- node: (0, _experiments.editorExperiment)('advanced_layouts', true) ? (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _schema.layoutSectionWithSingleColumnLocalId : _schema.layoutSectionWithSingleColumn : _adfSchema.layoutSection
64
+ node: (0, _experiments.editorExperiment)('advanced_layouts', true) ? (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _schema.layoutSectionWithSingleColumnLocalId : _schema.layoutSectionWithSingleColumn : (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.layoutSectionWithLocalId : _adfSchema.layoutSection
65
65
  }, {
66
66
  name: 'layoutColumn',
67
67
  node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.layoutColumnWithLocalId : _adfSchema.layoutColumn
@@ -149,6 +149,8 @@ var LayoutSectionView = exports.LayoutSectionView = /*#__PURE__*/function (_Reac
149
149
  _this = _callSuper(this, LayoutSectionView, [props.node, props.view, props.getPos, props.portalProviderAPI, props.eventDispatcher, props]);
150
150
  _this.isEmpty = isEmptyLayout(_this.node);
151
151
  _this.options = props.options;
152
+ // @portal-render-immediately
153
+ _this.shouldRenderImmediatelyInPortal = true;
152
154
  return _this;
153
155
  }
154
156
 
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { layoutColumn, layoutSection, layoutColumnWithLocalId } from '@atlaskit/adf-schema';
2
+ import { layoutColumn, layoutSection, layoutColumnWithLocalId, layoutSectionWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
@@ -54,7 +54,7 @@ export const layoutPlugin = ({
54
54
  nodes() {
55
55
  return [{
56
56
  name: 'layoutSection',
57
- node: editorExperiment('advanced_layouts', true) ? fg('platform_editor_adf_with_localid') ? layoutSectionWithSingleColumnLocalId : layoutSectionWithSingleColumn : layoutSection
57
+ node: editorExperiment('advanced_layouts', true) ? fg('platform_editor_adf_with_localid') ? layoutSectionWithSingleColumnLocalId : layoutSectionWithSingleColumn : fg('platform_editor_adf_with_localid') ? layoutSectionWithLocalId : layoutSection
58
58
  }, {
59
59
  name: 'layoutColumn',
60
60
  node: fg('platform_editor_adf_with_localid') ? layoutColumnWithLocalId : layoutColumn
@@ -132,6 +132,8 @@ export class LayoutSectionView extends ReactNodeView {
132
132
  super(props.node, props.view, props.getPos, props.portalProviderAPI, props.eventDispatcher, props);
133
133
  this.isEmpty = isEmptyLayout(this.node);
134
134
  this.options = props.options;
135
+ // @portal-render-immediately
136
+ this.shouldRenderImmediatelyInPortal = true;
135
137
  }
136
138
 
137
139
  /**
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { layoutColumn, layoutSection, layoutColumnWithLocalId } from '@atlaskit/adf-schema';
2
+ import { layoutColumn, layoutSection, layoutColumnWithLocalId, layoutSectionWithLocalId } from '@atlaskit/adf-schema';
3
3
  import { layoutSectionWithSingleColumn, layoutSectionWithSingleColumnLocalId } from '@atlaskit/adf-schema/schema';
4
4
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
5
5
  import { layoutMessages, toolbarInsertBlockMessages as messages } from '@atlaskit/editor-common/messages';
@@ -55,7 +55,7 @@ export var layoutPlugin = function layoutPlugin(_ref) {
55
55
  nodes: function nodes() {
56
56
  return [{
57
57
  name: 'layoutSection',
58
- node: editorExperiment('advanced_layouts', true) ? fg('platform_editor_adf_with_localid') ? layoutSectionWithSingleColumnLocalId : layoutSectionWithSingleColumn : layoutSection
58
+ node: editorExperiment('advanced_layouts', true) ? fg('platform_editor_adf_with_localid') ? layoutSectionWithSingleColumnLocalId : layoutSectionWithSingleColumn : fg('platform_editor_adf_with_localid') ? layoutSectionWithLocalId : layoutSection
59
59
  }, {
60
60
  name: 'layoutColumn',
61
61
  node: fg('platform_editor_adf_with_localid') ? layoutColumnWithLocalId : layoutColumn
@@ -140,6 +140,8 @@ export var LayoutSectionView = /*#__PURE__*/function (_ReactNodeView) {
140
140
  _this = _callSuper(this, LayoutSectionView, [props.node, props.view, props.getPos, props.portalProviderAPI, props.eventDispatcher, props]);
141
141
  _this.isEmpty = isEmptyLayout(_this.node);
142
142
  _this.options = props.options;
143
+ // @portal-render-immediately
144
+ _this.shouldRenderImmediatelyInPortal = true;
143
145
  return _this;
144
146
  }
145
147
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-layout",
3
- "version": "3.1.6",
3
+ "version": "3.1.8",
4
4
  "description": "Layout plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -45,7 +45,7 @@
45
45
  "@atlaskit/icon": "^27.12.0",
46
46
  "@atlaskit/icon-lab": "^5.6.0",
47
47
  "@atlaskit/platform-feature-flags": "^1.1.0",
48
- "@atlaskit/tmp-editor-statsig": "^10.0.0",
48
+ "@atlaskit/tmp-editor-statsig": "^11.1.0",
49
49
  "@atlaskit/tokens": "^6.0.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@emotion/react": "^11.7.1"