@atlaskit/editor-plugin-block-type 6.2.4 → 6.2.5

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,11 @@
1
1
  # @atlaskit/editor-plugin-block-type
2
2
 
3
+ ## 6.2.5
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies
8
+
3
9
  ## 6.2.4
4
10
 
5
11
  ### Patch Changes
@@ -144,7 +144,7 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
144
144
  node: _adfSchema.heading
145
145
  }, {
146
146
  name: 'blockquote',
147
- node: _adfSchema.extendedBlockquote
147
+ node: (0, _platformFeatureFlags.fg)('platform_editor_adf_with_localid') ? _adfSchema.extendedBlockquoteWithLocalId : _adfSchema.extendedBlockquote
148
148
  }, {
149
149
  name: 'hardBreak',
150
150
  node: _adfSchema.hardBreak
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { extendedBlockquote, hardBreak, heading } from '@atlaskit/adf-schema';
2
+ import { extendedBlockquote, extendedBlockquoteWithLocalId, hardBreak, heading } from '@atlaskit/adf-schema';
3
3
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
4
4
  import { keymap, tooltip } from '@atlaskit/editor-common/keymaps';
5
5
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
@@ -133,7 +133,7 @@ const blockTypePlugin = ({
133
133
  node: heading
134
134
  }, {
135
135
  name: 'blockquote',
136
- node: extendedBlockquote
136
+ node: fg('platform_editor_adf_with_localid') ? extendedBlockquoteWithLocalId : extendedBlockquote
137
137
  }, {
138
138
  name: 'hardBreak',
139
139
  node: hardBreak
@@ -3,7 +3,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
3
3
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
4
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
5
  import React from 'react';
6
- import { extendedBlockquote, hardBreak, heading } from '@atlaskit/adf-schema';
6
+ import { extendedBlockquote, extendedBlockquoteWithLocalId, hardBreak, heading } from '@atlaskit/adf-schema';
7
7
  import { ACTION, ACTION_SUBJECT, ACTION_SUBJECT_ID, EVENT_TYPE, INPUT_METHOD } from '@atlaskit/editor-common/analytics';
8
8
  import { keymap, tooltip } from '@atlaskit/editor-common/keymaps';
9
9
  import { blockTypeMessages as messages } from '@atlaskit/editor-common/messages';
@@ -137,7 +137,7 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
137
137
  node: heading
138
138
  }, {
139
139
  name: 'blockquote',
140
- node: extendedBlockquote
140
+ node: fg('platform_editor_adf_with_localid') ? extendedBlockquoteWithLocalId : extendedBlockquote
141
141
  }, {
142
142
  name: 'hardBreak',
143
143
  node: hardBreak
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-plugin-block-type",
3
- "version": "6.2.4",
3
+ "version": "6.2.5",
4
4
  "description": "BlockType plugin for @atlaskit/editor-core",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@atlaskit/primitives": "^14.11.0",
52
52
  "@atlaskit/prosemirror-input-rules": "^3.4.0",
53
53
  "@atlaskit/theme": "^19.0.0",
54
- "@atlaskit/tmp-editor-statsig": "^10.0.0",
54
+ "@atlaskit/tmp-editor-statsig": "^11.0.0",
55
55
  "@atlaskit/tokens": "^6.0.0",
56
56
  "@babel/runtime": "^7.0.0",
57
57
  "@emotion/react": "^11.7.1"
@@ -118,6 +118,9 @@
118
118
  },
119
119
  "platform_editor_use_preferences_plugin": {
120
120
  "type": "boolean"
121
+ },
122
+ "platform_editor_adf_with_localid": {
123
+ "type": "boolean"
121
124
  }
122
125
  }
123
126
  }