@atlaskit/editor-plugin-block-type 22.0.10 → 22.0.11
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,13 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-block-type
|
|
2
2
|
|
|
3
|
+
## 22.0.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [`0920715a6b9fc`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0920715a6b9fc) -
|
|
8
|
+
Clean up feature gate `platform_editor_use_preferences_plugin`
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
|
|
3
11
|
## 22.0.10
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
|
@@ -244,8 +244,8 @@ var blockTypePlugin = exports.blockTypePlugin = function blockTypePlugin(_ref3)
|
|
|
244
244
|
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
|
|
245
245
|
pluginsOptions: _objectSpread(_objectSpread({}, !isToolbarAIFCEnabled && {
|
|
246
246
|
selectionToolbar: function selectionToolbar() {
|
|
247
|
-
var _api$userPreferences
|
|
248
|
-
var toolbarDocking =
|
|
247
|
+
var _api$userPreferences;
|
|
248
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
249
249
|
if (toolbarDocking === 'none' && (0, _editorExperiment.editorExperiment)('platform_editor_controls', 'variant1', {
|
|
250
250
|
exposure: true
|
|
251
251
|
})) {
|
|
@@ -234,8 +234,8 @@ const blockTypePlugin = ({
|
|
|
234
234
|
pluginsOptions: {
|
|
235
235
|
...(!isToolbarAIFCEnabled && {
|
|
236
236
|
selectionToolbar: () => {
|
|
237
|
-
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2
|
|
238
|
-
const toolbarDocking =
|
|
237
|
+
var _api$userPreferences, _api$userPreferences$, _api$userPreferences$2;
|
|
238
|
+
const toolbarDocking = api === null || api === void 0 ? void 0 : (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 ? void 0 : (_api$userPreferences$ = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences$ === void 0 ? void 0 : (_api$userPreferences$2 = _api$userPreferences$.preferences) === null || _api$userPreferences$2 === void 0 ? void 0 : _api$userPreferences$2.toolbarDockingPosition;
|
|
239
239
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
240
240
|
exposure: true
|
|
241
241
|
})) {
|
|
@@ -237,8 +237,8 @@ var blockTypePlugin = function blockTypePlugin(_ref3) {
|
|
|
237
237
|
primaryToolbarComponent: !(api !== null && api !== void 0 && api.primaryToolbar) ? primaryToolbarComponent : undefined,
|
|
238
238
|
pluginsOptions: _objectSpread(_objectSpread({}, !isToolbarAIFCEnabled && {
|
|
239
239
|
selectionToolbar: function selectionToolbar() {
|
|
240
|
-
var _api$userPreferences
|
|
241
|
-
var toolbarDocking =
|
|
240
|
+
var _api$userPreferences;
|
|
241
|
+
var toolbarDocking = api === null || api === void 0 || (_api$userPreferences = api.userPreferences) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.sharedState.currentState()) === null || _api$userPreferences === void 0 || (_api$userPreferences = _api$userPreferences.preferences) === null || _api$userPreferences === void 0 ? void 0 : _api$userPreferences.toolbarDockingPosition;
|
|
242
242
|
if (toolbarDocking === 'none' && editorExperiment('platform_editor_controls', 'variant1', {
|
|
243
243
|
exposure: true
|
|
244
244
|
})) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-block-type",
|
|
3
|
-
"version": "22.0.
|
|
3
|
+
"version": "22.0.11",
|
|
4
4
|
"description": "BlockType plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
"@emotion/react": "^11.7.1"
|
|
51
51
|
},
|
|
52
52
|
"peerDependencies": {
|
|
53
|
-
"@atlaskit/editor-common": "^122.
|
|
53
|
+
"@atlaskit/editor-common": "^122.11.0",
|
|
54
54
|
"react": "^18.2.0 || ^19.2.0",
|
|
55
55
|
"react-dom": "^18.2.0 || ^19.2.0",
|
|
56
56
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
@@ -70,9 +70,6 @@
|
|
|
70
70
|
"platform_editor_toolbar_responsive_fixes": {
|
|
71
71
|
"type": "boolean"
|
|
72
72
|
},
|
|
73
|
-
"platform_editor_use_preferences_plugin": {
|
|
74
|
-
"type": "boolean"
|
|
75
|
-
},
|
|
76
73
|
"platform_editor_markdown_compatible_toolbar": {
|
|
77
74
|
"type": "boolean"
|
|
78
75
|
},
|