@atlaskit/editor-plugin-insert-block 3.0.12 → 3.0.13

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,14 @@
1
1
  # @atlaskit/editor-plugin-insert-block
2
2
 
3
+ ## 3.0.13
4
+
5
+ ### Patch Changes
6
+
7
+ - [#130044](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/130044)
8
+ [`cad348d512cdf`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/cad348d512cdf) -
9
+ [ux] ED-26802 contextual formatting configuration
10
+ - Updated dependencies
11
+
3
12
  ## 3.0.12
4
13
 
5
14
  ### Patch Changes
@@ -111,7 +111,7 @@ function delayUntilIdle(cb) {
111
111
  });
112
112
  }
113
113
  var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_ref) {
114
- var _options$appearance4;
114
+ var _api$primaryToolbar, _options$appearance4;
115
115
  var _ref$config = _ref.config,
116
116
  options = _ref$config === void 0 ? {} : _ref$config,
117
117
  api = _ref.api;
@@ -155,15 +155,10 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
155
155
  renderNode: renderNode
156
156
  });
157
157
  };
158
- if ((0, _experiments.editorExperiment)('platform_editor_controls', 'control', {
159
- exposure: true
160
- })) {
161
- var _api$primaryToolbar;
162
- api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
163
- name: 'insertBlock',
164
- component: primaryToolbarComponent
165
- });
166
- }
158
+ api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
159
+ name: 'insertBlock',
160
+ component: primaryToolbarComponent
161
+ });
167
162
  var plugin = {
168
163
  name: 'insertBlock',
169
164
  actions: {
@@ -311,9 +306,7 @@ var insertBlockPlugin = exports.insertBlockPlugin = function insertBlockPlugin(_
311
306
  return [];
312
307
  }
313
308
  },
314
- primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) && (0, _experiments.editorExperiment)('platform_editor_controls', 'control', {
315
- exposure: true
316
- }) ? primaryToolbarComponent : undefined
309
+ primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
317
310
  };
318
311
  if (
319
312
  // @ts-ignore
@@ -97,7 +97,7 @@ export const insertBlockPlugin = ({
97
97
  config: options = {},
98
98
  api
99
99
  }) => {
100
- var _options$appearance4;
100
+ var _api$primaryToolbar, _options$appearance4;
101
101
  const editorViewRef = {
102
102
  current: null
103
103
  };
@@ -139,15 +139,10 @@ export const insertBlockPlugin = ({
139
139
  renderNode: renderNode
140
140
  });
141
141
  };
142
- if (editorExperiment('platform_editor_controls', 'control', {
143
- exposure: true
144
- })) {
145
- var _api$primaryToolbar;
146
- api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.actions.registerComponent({
147
- name: 'insertBlock',
148
- component: primaryToolbarComponent
149
- });
150
- }
142
+ api === null || api === void 0 ? void 0 : (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 ? void 0 : _api$primaryToolbar.actions.registerComponent({
143
+ name: 'insertBlock',
144
+ component: primaryToolbarComponent
145
+ });
151
146
  const plugin = {
152
147
  name: 'insertBlock',
153
148
  actions: {
@@ -298,9 +293,7 @@ export const insertBlockPlugin = ({
298
293
  return [];
299
294
  }
300
295
  },
301
- primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) && editorExperiment('platform_editor_controls', 'control', {
302
- exposure: true
303
- }) ? primaryToolbarComponent : undefined
296
+ primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
304
297
  };
305
298
  if (
306
299
  // @ts-ignore
@@ -100,7 +100,7 @@ function delayUntilIdle(cb) {
100
100
  });
101
101
  }
102
102
  export var insertBlockPlugin = function insertBlockPlugin(_ref) {
103
- var _options$appearance4;
103
+ var _api$primaryToolbar, _options$appearance4;
104
104
  var _ref$config = _ref.config,
105
105
  options = _ref$config === void 0 ? {} : _ref$config,
106
106
  api = _ref.api;
@@ -144,15 +144,10 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
144
144
  renderNode: renderNode
145
145
  });
146
146
  };
147
- if (editorExperiment('platform_editor_controls', 'control', {
148
- exposure: true
149
- })) {
150
- var _api$primaryToolbar;
151
- api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
152
- name: 'insertBlock',
153
- component: primaryToolbarComponent
154
- });
155
- }
147
+ api === null || api === void 0 || (_api$primaryToolbar = api.primaryToolbar) === null || _api$primaryToolbar === void 0 || _api$primaryToolbar.actions.registerComponent({
148
+ name: 'insertBlock',
149
+ component: primaryToolbarComponent
150
+ });
156
151
  var plugin = {
157
152
  name: 'insertBlock',
158
153
  actions: {
@@ -300,9 +295,7 @@ export var insertBlockPlugin = function insertBlockPlugin(_ref) {
300
295
  return [];
301
296
  }
302
297
  },
303
- primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) && editorExperiment('platform_editor_controls', 'control', {
304
- exposure: true
305
- }) ? primaryToolbarComponent : undefined
298
+ primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined
306
299
  };
307
300
  if (
308
301
  // @ts-ignore
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-insert-block",
3
- "version": "3.0.12",
3
+ "version": "3.0.13",
4
4
  "description": "Insert block plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@atlaskit/button": "^21.1.0",
37
- "@atlaskit/editor-common": "^102.11.0",
37
+ "@atlaskit/editor-common": "^102.12.0",
38
38
  "@atlaskit/editor-plugin-analytics": "^2.2.0",
39
39
  "@atlaskit/editor-plugin-block-type": "^5.1.0",
40
40
  "@atlaskit/editor-plugin-code-block": "^4.2.0",
@@ -53,7 +53,7 @@
53
53
  "@atlaskit/editor-plugin-metrics": "^3.4.0",
54
54
  "@atlaskit/editor-plugin-panel": "^4.3.0",
55
55
  "@atlaskit/editor-plugin-placeholder-text": "^2.1.0",
56
- "@atlaskit/editor-plugin-primary-toolbar": "^3.0.0",
56
+ "@atlaskit/editor-plugin-primary-toolbar": "^3.1.0",
57
57
  "@atlaskit/editor-plugin-quick-insert": "^2.1.0",
58
58
  "@atlaskit/editor-plugin-rule": "^2.1.0",
59
59
  "@atlaskit/editor-plugin-status": "^3.1.0",