@atlaskit/editor-presets 23.0.1 → 23.1.1
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,23 @@
|
|
|
1
1
|
# @atlaskit/editor-presets
|
|
2
2
|
|
|
3
|
+
## 23.1.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
|
|
9
|
+
## 23.1.0
|
|
10
|
+
|
|
11
|
+
### Minor Changes
|
|
12
|
+
|
|
13
|
+
- [`0352c4e5b3ada`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0352c4e5b3ada) -
|
|
14
|
+
Add an optional onBlockHandleClick callback for drag-handle, including keyboard activation.
|
|
15
|
+
Confluence configures the callback behind the confluence_table_to_database experiment.
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies
|
|
20
|
+
|
|
3
21
|
## 23.0.1
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -174,7 +174,7 @@ var _userPreferencesPluginOptions = require("./pluginOptions/userPreferencesPlug
|
|
|
174
174
|
* ```
|
|
175
175
|
*/
|
|
176
176
|
function confluenceFullPageBasePreset(props) {
|
|
177
|
-
var _enabledOptionalPlugi;
|
|
177
|
+
var _enabledOptionalPlugi, _pluginOptions$blockC;
|
|
178
178
|
var intl = props.intl,
|
|
179
179
|
providers = props.providers,
|
|
180
180
|
enabledOptionalPlugins = props.enabledOptionalPlugins;
|
|
@@ -301,6 +301,7 @@ function confluenceFullPageBasePreset(props) {
|
|
|
301
301
|
})]).add(_editorViewmodeEffectsPlugin.editorViewModeEffectsPlugin).add([_selectionMarkerPlugin.selectionMarkerPlugin, (0, _selectionMarkerPluginOptions.selectionMarkerPluginOptions)({
|
|
302
302
|
options: pluginOptions.selectionMarker
|
|
303
303
|
})]).add([_blockControlsPlugin.blockControlsPlugin, {
|
|
304
|
+
onBlockHandleClick: (_pluginOptions$blockC = pluginOptions.blockControls) === null || _pluginOptions$blockC === void 0 ? void 0 : _pluginOptions$blockC.onBlockHandleClick,
|
|
304
305
|
rightSideControlsEnabled: (0, _fg.fg)('confluence_remix_button_right_side_block_fg') && (0, _expValEqualsNoExposure.expValEqualsNoExposure)('cc-maui-experiment', 'isEnabled', true)
|
|
305
306
|
}]).add(_highlightPlugin.highlightPlugin).maybeAdd(_connectivityPlugin.connectivityPlugin, enabledOptionalPlugins.connectivity).maybeAdd([_metricsPlugin.metricsPlugin, (0, _metricsPluginOptions.metricsPluginOptions)({
|
|
306
307
|
options: pluginOptions.metrics
|
|
@@ -168,7 +168,7 @@ import { userPreferencesPluginOptions } from './pluginOptions/userPreferencesPlu
|
|
|
168
168
|
* ```
|
|
169
169
|
*/
|
|
170
170
|
export function confluenceFullPageBasePreset(props) {
|
|
171
|
-
var _enabledOptionalPlugi;
|
|
171
|
+
var _enabledOptionalPlugi, _pluginOptions$blockC;
|
|
172
172
|
const {
|
|
173
173
|
intl,
|
|
174
174
|
providers,
|
|
@@ -297,6 +297,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
297
297
|
})]).add(editorViewModeEffectsPlugin).add([selectionMarkerPlugin, selectionMarkerPluginOptions({
|
|
298
298
|
options: pluginOptions.selectionMarker
|
|
299
299
|
})]).add([blockControlsPlugin, {
|
|
300
|
+
onBlockHandleClick: (_pluginOptions$blockC = pluginOptions.blockControls) === null || _pluginOptions$blockC === void 0 ? void 0 : _pluginOptions$blockC.onBlockHandleClick,
|
|
300
301
|
rightSideControlsEnabled: fg('confluence_remix_button_right_side_block_fg') && expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true)
|
|
301
302
|
}]).add(highlightPlugin).maybeAdd(connectivityPlugin, enabledOptionalPlugins.connectivity).maybeAdd([metricsPlugin, metricsPluginOptions({
|
|
302
303
|
options: pluginOptions.metrics
|
|
@@ -168,7 +168,7 @@ import { userPreferencesPluginOptions } from './pluginOptions/userPreferencesPlu
|
|
|
168
168
|
* ```
|
|
169
169
|
*/
|
|
170
170
|
export function confluenceFullPageBasePreset(props) {
|
|
171
|
-
var _enabledOptionalPlugi;
|
|
171
|
+
var _enabledOptionalPlugi, _pluginOptions$blockC;
|
|
172
172
|
var intl = props.intl,
|
|
173
173
|
providers = props.providers,
|
|
174
174
|
enabledOptionalPlugins = props.enabledOptionalPlugins;
|
|
@@ -295,6 +295,7 @@ export function confluenceFullPageBasePreset(props) {
|
|
|
295
295
|
})]).add(editorViewModeEffectsPlugin).add([selectionMarkerPlugin, selectionMarkerPluginOptions({
|
|
296
296
|
options: pluginOptions.selectionMarker
|
|
297
297
|
})]).add([blockControlsPlugin, {
|
|
298
|
+
onBlockHandleClick: (_pluginOptions$blockC = pluginOptions.blockControls) === null || _pluginOptions$blockC === void 0 ? void 0 : _pluginOptions$blockC.onBlockHandleClick,
|
|
298
299
|
rightSideControlsEnabled: fg('confluence_remix_button_right_side_block_fg') && expValEqualsNoExposure('cc-maui-experiment', 'isEnabled', true)
|
|
299
300
|
}]).add(highlightPlugin).maybeAdd(connectivityPlugin, enabledOptionalPlugins.connectivity).maybeAdd([metricsPlugin, metricsPluginOptions({
|
|
300
301
|
options: pluginOptions.metrics
|
|
@@ -18,7 +18,7 @@ import type { AvatarGroupPlugin } from '@atlaskit/editor-plugin-avatar-group/ava
|
|
|
18
18
|
import type { BasePlugin } from '@atlaskit/editor-plugin-base/basePluginType';
|
|
19
19
|
import type { BatchAttributeUpdatesPlugin } from '@atlaskit/editor-plugin-batch-attribute-updates/batchAttributeUpdatesPluginType';
|
|
20
20
|
import type { BetterTypeHistoryPlugin } from '@atlaskit/editor-plugin-better-type-history/betterTypeHistoryPluginType';
|
|
21
|
-
import type { BlockControlsPlugin } from '@atlaskit/editor-plugin-block-controls/blockControlsPluginType';
|
|
21
|
+
import type { BlockControlsPlugin, BlockControlsPluginConfig } from '@atlaskit/editor-plugin-block-controls/blockControlsPluginType';
|
|
22
22
|
import type { BlockMenuPlugin } from '@atlaskit/editor-plugin-block-menu/blockMenuPluginType';
|
|
23
23
|
import type { BlockTypePlugin } from '@atlaskit/editor-plugin-block-type/blockTypePluginType';
|
|
24
24
|
import type { BorderPlugin } from '@atlaskit/editor-plugin-border/borderPluginType';
|
|
@@ -327,7 +327,7 @@ export interface AllPublicPluginOptions {
|
|
|
327
327
|
base: never;
|
|
328
328
|
batchAttributeUpdates: never;
|
|
329
329
|
betterTypeHistory: never;
|
|
330
|
-
blockControls
|
|
330
|
+
blockControls?: Pick<BlockControlsPluginConfig, 'onBlockHandleClick'>;
|
|
331
331
|
blockMenu: OptionsFromPluginOptionsBuilder<typeof blockMenuPluginOptions>;
|
|
332
332
|
blockType: OptionsFromPluginOptionsBuilder<typeof blockTypePluginOptions>;
|
|
333
333
|
border: never;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-presets",
|
|
3
|
-
"version": "23.
|
|
3
|
+
"version": "23.1.1",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Public editor presets for Atlassian Editor containing base configurations for Confluence and other products",
|
|
6
6
|
"publishConfig": {
|
|
@@ -29,13 +29,13 @@
|
|
|
29
29
|
"@atlaskit/editor-plugin-base": "^30.0.0",
|
|
30
30
|
"@atlaskit/editor-plugin-batch-attribute-updates": "^29.0.0",
|
|
31
31
|
"@atlaskit/editor-plugin-better-type-history": "^29.0.0",
|
|
32
|
-
"@atlaskit/editor-plugin-block-controls": "^30.
|
|
32
|
+
"@atlaskit/editor-plugin-block-controls": "^30.1.0",
|
|
33
33
|
"@atlaskit/editor-plugin-block-menu": "^28.0.0",
|
|
34
34
|
"@atlaskit/editor-plugin-block-type": "^33.0.0",
|
|
35
35
|
"@atlaskit/editor-plugin-border": "^29.0.0",
|
|
36
36
|
"@atlaskit/editor-plugin-breakout": "^29.0.0",
|
|
37
37
|
"@atlaskit/editor-plugin-caption": "^29.0.0",
|
|
38
|
-
"@atlaskit/editor-plugin-card": "^35.
|
|
38
|
+
"@atlaskit/editor-plugin-card": "^35.1.0",
|
|
39
39
|
"@atlaskit/editor-plugin-clear-marks-on-empty-doc": "^29.0.0",
|
|
40
40
|
"@atlaskit/editor-plugin-clipboard": "^29.0.0",
|
|
41
41
|
"@atlaskit/editor-plugin-code-block": "^31.0.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@atlaskit/editor-plugin-selection-extension": "^32.0.0",
|
|
96
96
|
"@atlaskit/editor-plugin-selection-marker": "^29.0.0",
|
|
97
97
|
"@atlaskit/editor-plugin-selection-toolbar": "^30.0.0",
|
|
98
|
-
"@atlaskit/editor-plugin-show-diff": "^27.
|
|
98
|
+
"@atlaskit/editor-plugin-show-diff": "^27.1.0",
|
|
99
99
|
"@atlaskit/editor-plugin-status": "^30.0.0",
|
|
100
100
|
"@atlaskit/editor-plugin-submit-editor": "^29.0.0",
|
|
101
101
|
"@atlaskit/editor-plugin-synced-block": "^27.0.0",
|
|
@@ -114,16 +114,16 @@
|
|
|
114
114
|
"@atlaskit/editor-plugin-user-intent": "^27.0.0",
|
|
115
115
|
"@atlaskit/editor-plugin-user-preferences": "^27.0.0",
|
|
116
116
|
"@atlaskit/editor-plugin-width": "^30.0.0",
|
|
117
|
-
"@atlaskit/emoji": "^73.
|
|
117
|
+
"@atlaskit/emoji": "^73.1.0",
|
|
118
118
|
"@atlaskit/platform-feature-experiments": "^0.3.0",
|
|
119
119
|
"@atlaskit/platform-feature-flags": "^2.2.0",
|
|
120
|
-
"@atlaskit/tmp-editor-statsig": "^
|
|
120
|
+
"@atlaskit/tmp-editor-statsig": "^245.0.0",
|
|
121
121
|
"@atlassian/ari": "^3.19.0",
|
|
122
122
|
"@atlassian/editor-plugin-agent-managed-extension": "^19.0.0",
|
|
123
123
|
"@babel/runtime": "^7.0.0"
|
|
124
124
|
},
|
|
125
125
|
"peerDependencies": {
|
|
126
|
-
"@atlaskit/editor-common": "^133.
|
|
126
|
+
"@atlaskit/editor-common": "^133.5.0",
|
|
127
127
|
"react": "^18.2.0 || ^19.2.0",
|
|
128
128
|
"react-intl": "^5.25.1 || ^6.0.0 || ^7.0.0"
|
|
129
129
|
},
|