@atlaskit/editor-plugin-block-type 6.2.4 → 6.2.6
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
|
@@ -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.
|
|
3
|
+
"version": "6.2.6",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@atlaskit/editor-plugin-analytics": "^3.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-primary-toolbar": "^4.1.0",
|
|
41
41
|
"@atlaskit/editor-plugin-selection-toolbar": "^4.3.0",
|
|
42
|
-
"@atlaskit/editor-plugin-toolbar": "^0.
|
|
42
|
+
"@atlaskit/editor-plugin-toolbar": "^0.3.0",
|
|
43
43
|
"@atlaskit/editor-prosemirror": "7.0.0",
|
|
44
44
|
"@atlaskit/editor-shared-styles": "^3.6.0",
|
|
45
45
|
"@atlaskit/editor-tables": "^2.9.0",
|
|
@@ -51,13 +51,13 @@
|
|
|
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": "^
|
|
54
|
+
"@atlaskit/tmp-editor-statsig": "^11.3.0",
|
|
55
55
|
"@atlaskit/tokens": "^6.0.0",
|
|
56
56
|
"@babel/runtime": "^7.0.0",
|
|
57
57
|
"@emotion/react": "^11.7.1"
|
|
58
58
|
},
|
|
59
59
|
"peerDependencies": {
|
|
60
|
-
"@atlaskit/editor-common": "^107.
|
|
60
|
+
"@atlaskit/editor-common": "^107.26.0",
|
|
61
61
|
"react": "^18.2.0",
|
|
62
62
|
"react-dom": "^18.2.0",
|
|
63
63
|
"react-intl-next": "npm:react-intl@^5.18.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
|
}
|